English 中文(简体)
视窗工作流程基金会暂停国家机器工作流程试验 4
原标题:Resuming a suspended state machine workflow instance in Windows Workflow Foundation 4

I currently have a State Machine running as a Windows Workflow Foundation 4 Web Service. This solution is for long running workflows so it also utilizes the SqlWorkflowInstanceStore. The problem I have is that I can’t find a solution to Resuming a Suspended workflow instance. The examples I’ve seen online don’t seem to apply for a State Machine. The confusion seems to come from the fact that I don’t have an endpoint to reference which is needed to create the proper WorflowControlClient object.

希望得到任何帮助。

最佳回答

我在我的服务同一子项下创建了一个网站。 然后,我不得不在新建立的网络中确定一个终点。 然后,我又增加了一个终点定义,作为工作流程组。

<endpoint address="wce" binding="basicHttpBinding" name="wceEndpoint" kind="workflowControlEndpoint"/>
<endpoint address="" binding="basicHttpBinding" name="WorkFlowCreated" contract="IWorkFlowCreated" />
<endpoint address="" binding="basicHttpBinding" name="WorkFlowUpdated" contract="IWorkFlowUpdated" />

之后,有可能创建工作流程

WorkflowControlClient controlClient = new WorkflowControlClient(
  new BasicHttpBinding(), 
  new EndpointAddress(new Uri("http://sitepath/general/1.0.0/General.xamlx/wce")));
controlClient.Unsuspend(instanceId);</code>
问题回答

暂无回答




相关问题
Rails error handling with AASM state machine

I m using the rubyist-aasm state machine for handling the different states in my Event object (event initialized, event discussed, event published, etc.). I added guards to prevent state changes when ...

State based testing(state charts) & transition sequences

I am really stuck with some state based testing concepts... I am trying to calculate some checking sequences that will cover all transitions from each state and i have the answers but i dont ...

References on statemachine optimization and code generation?

As a follow-up to my state machines as a C++-like language extension question, I d like some more help. My compiler has been extended to parse my state machine extensions and now I m beginning ...

Register callback for all transitions in AASM?

There are 2 methods I want to call after every state transition. Right now I m doing: aasm_event :nominate_for_publishing, :before => [:set_state_last_updated_by, :set_state_updated_at] do ...

热门标签