Pausing a running workflow explicitly
-
quinta-feira, 12 de abril de 2012 03:21
Hi all,
is it possible to pause a running workflow explicitly not using delay in workflow.
i am running this workflow on a wcf service..
Todas as Respostas
-
segunda-feira, 16 de abril de 2012 08:10Moderador
Hi,
You can change the workflow status by using WorkflowControlClient.
Workflow Control Client
Thanks.
Leo Tang [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
segunda-feira, 16 de abril de 2012 09:51
Thanks Leo....
my problem is that i am using WorkflowApplication to run a workflow. i want to pause the workflow through a button . i am using wcf service on which i am having workflow application object.
in order to pause the workflow i can use workflowapplication.unload method .. but problem that i am facing is that how i can initalize the workflow with runtime id.. as if i write
workflowapplication wapp=new workflowapplication ()..
it automically assigns an id to it...i cant use callback or
InstanceContextMode.Single to have workflow application object state..
-
quarta-feira, 18 de abril de 2012 10:00Moderador
Hi,
Yes, the WorkflowApplication always assign a generated Id to it. As far as I know, there is no way to specify the runtime Id manually in WF4. We must retrieve the workflow instance's id and send it back to client for controlling workflow states.
Get WorkflowInstanceId
http://msdn.microsoft.com/en-us/library/ee943758.aspx
Pausing and Resuming a Workflow
http://msdn.microsoft.com/en-us/library/ff729667.aspx
Thanks.
Leo Tang [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- Marcado como Resposta LeoTangModerator segunda-feira, 23 de abril de 2012 00:44

