none
How to know in state machine workflow from where the request is forward to current state

    Question

  • i have scenario and following states

    requestor

    supervisor

    dept manager

    vp

    request move to supervisor even if request approved and reject it will go to requestor and requestor have the rights to escalate it to above level i am able to escalate it one layer up like department manager but even if department manager approve or reject it will move to requestor for approve or escalate,if requestor now escalate it should go to next level which vp

    how to know the requestor response already had supervisor state and now it should move to vp state


    MCTS,ITIL

    Monday, January 13, 2014 7:21 AM

Answers

  • i am able to check that with

    this.PreviousStateName;

    and check the conidtion which contains the state name

    thanks


    MCTS,ITIL

    Monday, January 13, 2014 12:25 PM

All replies

  • Can you not use workflow variables and then check the value and/or assign value to that variable before setting state activity?

    Amit

    Monday, January 13, 2014 11:14 AM
  • can you give me example of it

    i am trying with

    workflowProperties.Item[

    "WorkFlowState"] = this.PreviousStateName;

    and then checking

    if

    (this.onTaskChangedRequestorAction_AfterProperties1.ExtendedProperties["Workflowstatus"].ToString().Contains("Escalate-the-case-further") && workflowProperties.Item["WorkFlowState"].ToString().Contains("SupervisorAction"))

    do you have any example?


    MCTS,ITIL

    Monday, January 13, 2014 11:53 AM
  • i am able to check that with

    this.PreviousStateName;

    and check the conidtion which contains the state name

    thanks


    MCTS,ITIL

    Monday, January 13, 2014 12:25 PM