I have there states (S1, S2 and S3) and two properties (P1 and P2) in my workflow. In S2 i like to get the values of P1 and P2. how can i do this
Thanks in advance.
I have there states (S1, S2 and S3) and two properties (P1 and P2) in my workflow. In S2 i like to get the values of P1 and P2. how can i do this
Thanks in advance.
Retrieving parameter before completion of workflow.
cbowman
Khusal -
Yes, u r right i want to assess these properties( P1 and P2) from my Host Application. Actullay I want to maintain the inner state with in a state.
State 1
State 2
State 2-1 State 2-2
State 2-2-1
Completion
There would be 2 states (State 1 and State 2). State 2 would only come after completion of State 1. In State 2 is having 3 task (STATE 2-1, STATE 2-2 and STATE 2-2-1) user can perform STATE 2-1 and STATE 2-2 same time. But he can move for STATE 2-2-1 only After completeing STATE 2-2. When all thing are finished he can move to Completetion state. Please suggest me what can be the better way to do this.
JimmyS
An interesting thing you can do in a state machine is to have a top level EventDriven that listens for an event, for example called GetValues. When this event is received, it then used a CallExternalMethod to call back to the host and pass back the desired values. When the host wants to get the values, it can dispatch this event to the workflow and the Workflow will then call back into the host with the desired information.
Tracking is a better solution but for a simple case the above approach may be useful.
Steve Danielson [Microsoft]
This posting is provided "AS IS" with no warranties, and confers no rights.
Davids Learning
Can u please provide me a code sample to get desired values from workflow instance
Thanks
Bharat Bhushan
Owend
John_Wesley
Bharat -
I am not sure what you mean by get the values of P1 and P2 in State2. Any property defined in the Workflow can be access witthin any activity of the workflow.
Can you please elaborate
Thanks,
Kushal.