Automatically end or cancel a process

コメント

2件のコメント

  • Avatar
    Loren Bratzler

    Try adding a new branch to your process that sets a cancel date and waits for that cancel date.  If the cancel date arrives, you then use the AgilePoint API to cancel the process.  This new branch would join back together with the main process using an "Or" shape.  So that way the process can still complete normally before the timer expires, 

    In the new branch you would use the "Add Date Time" activity to set a cancel date and then add a timer activity to wait for the cancel date.  If the time expires before the process ends, use a REST API call to call the AgilePoint API for cancelling the process.

    For instance if you wanted to cancel the process one day after the travel date (Date1 in this example), you would configure the Add Date Time activity like this:

    The Output field "CancelDate" is a process field I defined.

     

    Then set you timer activity to wait for the new "CancelDate" to arrive:

     

    When the timer expires the process will then execute the REST API call using Advanced Configuration:

     

    You will need to make sure that you have a variable defined for the AgilePoint REST URL and setup an access token for the service:

    0
    コメントアクション パーマリンク
  • Avatar
    David Foner

    Hi and sorry for not replying sooner to this, as I was OOO for a while. 
    Anyway, tried this and works perfectly. 

    Many thanks 

    David

    0
    コメントアクション パーマリンク

サインインしてコメントを残してください。