I have more than 100 instances that should be terminated. Those instances

I have more than 100 instances that should be terminated.
Those instances do not have any conditional termination, we do not want to use Cancel processes smart service.
Is there any way to terminate processes in bulk?...

OriginalPostID-129114

OriginalPostID-129114

  Discussion posts and replies are publicly visible

Parents
  • If you would like to Complete all the active instances rather than Cancel or Delete, you may perform the following steps

    1. In the Main process model, add a "Script Task" before an End event and set End Event to be a Terminate Event. This would ensure that all active instances will be Completed when the script task is triggered. Save and publish a new version.

    Note the UUID of the script task which can be found by going into the process model documentation of the main model and clicking on the script task.

    2. Download the Process Upgrade Plugin (Process Upgrade_1.0.3.jar) from Appian Forum > Records > Shared Components

    3. Copy into <APPIAN_HOME>/_admin/plugins folder

    4. Create a process model to perform a Process Upgrade adding an "Upgrade Processes" node and a "Start All Nodes" between the start and end events.

    5. In the "Upgrade Processes" Node
    - Set Dry Run to false
    - Specify the Process ids of active instances
    - Specify the main Process Model id

    6. In the "Start all Nodes" Node
    - Set Dry Run to false
    - Specify the UUID of the script task that was added in the main model
    - Specify the Process ids of actve instances

    7. Set isUpgrade to true and run the upgrade model to update instances to the latest version

    8. Set isUpgrade to false and run the upgrade model again to complete the active instances



    7. Run the Process Upgrade Process model from, which would upgrade all previous instances to the current version of the process model.
    8. Send a message to the process model to initiate Completion of active processes.
Reply
  • If you would like to Complete all the active instances rather than Cancel or Delete, you may perform the following steps

    1. In the Main process model, add a "Script Task" before an End event and set End Event to be a Terminate Event. This would ensure that all active instances will be Completed when the script task is triggered. Save and publish a new version.

    Note the UUID of the script task which can be found by going into the process model documentation of the main model and clicking on the script task.

    2. Download the Process Upgrade Plugin (Process Upgrade_1.0.3.jar) from Appian Forum > Records > Shared Components

    3. Copy into <APPIAN_HOME>/_admin/plugins folder

    4. Create a process model to perform a Process Upgrade adding an "Upgrade Processes" node and a "Start All Nodes" between the start and end events.

    5. In the "Upgrade Processes" Node
    - Set Dry Run to false
    - Specify the Process ids of active instances
    - Specify the main Process Model id

    6. In the "Start all Nodes" Node
    - Set Dry Run to false
    - Specify the UUID of the script task that was added in the main model
    - Specify the Process ids of actve instances

    7. Set isUpgrade to true and run the upgrade model to update instances to the latest version

    8. Set isUpgrade to false and run the upgrade model again to complete the active instances



    7. Run the Process Upgrade Process model from, which would upgrade all previous instances to the current version of the process model.
    8. Send a message to the process model to initiate Completion of active processes.
Children
No Data