locked
Values of Correlation Tokens in Workflow? RRS feed

  • Question

  • We have two event driven activities in our state machine work flow. One is "onWorkflowActivated1" and other is "onWorkflowItemChanged1".

    "onWorkflowActivated1 " CorrelationToken is set to "workflowToken" and "OwnerActivityName" is "Workflow1" (which is the name of the class) . If we keep same settings in "onWorkflowItemChanged1", workflow fires when item metadata is changed but is also fires  "onWorkflowActivated1".

    What should be correct Correlation Token settings of "onWorkflowItemChanged1"?

    We have tried following settings but not working:

    CorrelationToken = "workflow_Token"

    OwnerActivityName = "Workflow1" (name of the class) 

     

    CorrelationToken = "workflow_Token"

    OwnerActivityName = "WaitingState" (name of the state containing "onWorkflowItemChanged1" ) 


    Result of both activities is that we can "In Progress" status of workflow.

    Any help?

     


    http://farhanfaiz.wordpress.com
    Friday, November 5, 2010 10:44 AM

Answers

  • OK. Got it :). Issue was that we have also checked option of start when item is changed. So, when item is changed, "onWorkflowItemChanged1"is activated but as we have checked option to start workflow when item changed, workflow started again.
    http://farhanfaiz.wordpress.com
    • Marked as answer by Wayne Fan Monday, November 8, 2010 3:07 AM
    Friday, November 5, 2010 5:49 PM

All replies

  • OK. Got it :). Issue was that we have also checked option of start when item is changed. So, when item is changed, "onWorkflowItemChanged1"is activated but as we have checked option to start workflow when item changed, workflow started again.
    http://farhanfaiz.wordpress.com
    • Marked as answer by Wayne Fan Monday, November 8, 2010 3:07 AM
    Friday, November 5, 2010 5:49 PM
  • Hi malikfarhan,

    Thanks for your share.


    SharePoint 2010
    Monday, November 8, 2010 3:06 AM