I'm still trying to figure this out. Has anyone been able to make it work I created a simple state machine workflow with three states, initialState, modifyState, and completedState. There are no tasks in the workflow. Basically, in the modifyState I do the following:
In the stateInitializationActivity I enable workflow modification, giving the modification a new correlation token (modificationToken). Then I have two eventDrivenActivities in the state. One of them uses onWorkflowItemChanged and when that event fires it just does a logToHistory and then moves the workflow to the completedState. The other eventDrivenActivity is waiting on an onWorkflowModified event. This event uses the modificationToken as its correlation token. The activity simple moves to the completedState if the workflow gets modified. I also have a stateFinalizationActivity that just does a logToHistory.
When I run the workflow, everything works, that is I don't get any errors, but when I'm in that modifyState I don't see the option to modify the workflow like I'm supposed to. The workflow just sits there saying it is In Progress until I modify the workflow item and then it logs to history and completes like it's supposed to.
Any ideas would be greatly appreciated.
Thanks,
Cynthia
|