xaml - Behaviour of SendResponse in WF4 -
at top of template workflow put receiverequest / sendreply block i'd perform synchronous operations, enabling user client receive timely response of workflow being started. client calls wf via wcf.
client knows status of current request status of entry on application database.
for example, create order, call placeorderwf, set status of order on db "accepted". client can perform whatever wants while wf doing checks, controls, etc, ..., setting final value of order "completed" or "error".
i expect client receive response after sendresponse block. doesn't seem work way, waits kind of "event" release client. unfortunately, have no evidence of events triggering behaviour.
to test it, put delay activity after sendresponde activity , should able reproduce behaviour talking about.
any hints on how avoid unwanted error?
the workflow continue , execute as can on current thread , result doesn't return caller right away.if add delay small timeout, 1 second, workflow cause workflow go idle , wcf response send client after workflow continue.
Comments
Post a Comment