Skip to Content
avatar image
Former Member

Terminate a Workflow

Hi All,

I need to terminate the workflow based on particular event.Could you please suggest me how can i achieve it in the workflow.

Regards,

Kiran Rajan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Nov 09, 2016 at 10:51 AM

    Hi,

    You have to model it in your workflow. change the model and put the whole flow in a 1:2 fork. Then in the other branch either a wait for event step with the terminating event, or create a subflow holding all of the events that could terminate the process.

    If it is a really simple workflow with just 1 task, then you can also add the terminating events to the task definition (PFTC tab terminating events)

    Kind regards, Rob Dielemans

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 11, 2016 at 09:50 AM

    thanks Rob for the answer .

    In my case if a particular event triggered, i need to restart the workflow ie terminate the current workflow instance and start a new workflow.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Rob ,

      I have a custom event which is triggered using SWEC configuration.The custom event will be triggered if the user changes value in the screen .I need to pass the value from the screen field to the workflow.

      Is there any way to do the same ?

  • avatar image
    Former Member
    Nov 14, 2016 at 08:39 AM

    Hi Kiran,

    Adding to Rob's inputs:

    We need to understand if the particular event is triggered by a task in the workflow itself.

    1. If yes, then make the particular method as asynchronous and maintain the various outcomes of the task as terminating events. ( Please note: An event should be raised for each outcome, else the task will not end). When the particular event is raised the workflow will complete as there are no other steps in the branch. Also maintain the event as a start event in the workflow template.

    2. If no, then as mentioned earlier create a fork at the start of the workflow and maintain a single wait for event step with the particular event.

    Regards,

    Sankar

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Sankar ,

      I have a custom event which is triggered using SWEC configuration.The custom event will be triggered if the user changes value in the screen .I need to pass the value from the screen field to the workflow.

      Is there any way to do the same ?

  • avatar image
    Former Member
    Nov 21, 2016 at 03:06 AM

    Hi Kiran,

    In this case I believe you will have to fetch the value from the table using a separate step.

    Regards,

    Sankar

    Add comment
    10|10000 characters needed characters exceeded