Listen activity in StateMachine Workflow

Hi, i have event driven activity inside state in StateMachine workflow. Inside event driven activity i would like to have listen activity that has handleExternalEventActivity that waits for user input, and in parallel delay activity that sends order in expired state if there is no input from user for period of time. Problem is that I can not add listen activity in StateMachine workflow, can someone help me, and point me to some sample that solves this problem

Thanks,

Indigo Cowboy



Answer this question

Listen activity in StateMachine Workflow

  • Will Sullivan

    You can only have a single event based activity (like delay or handle external event) in a given eventdriven for a state. I would model this as two different events that can occur within your state.

    Event1- handle the external event and transition to a new state

    Even2 - start with a delay and then after the timeout, handle the timeout and transition

    matt



  • Red Maple

    This answer solved me a problem!

    Thanks Matt,

    Indigo Cowboy


  • Listen activity in StateMachine Workflow