Skip to content

Delete Workflow Instance

Parameter Configuration

ParameterDescription
Process Instance IDWorkflow instance ID. Dynamic content can be specified using expressions to get context variables
ReasonReason for deletion. Dynamic content can be specified using expressions to get context variables

Notes

When deleting a process instance, the workflow engine will completely delete data related to the workflow instance (process instance, process tasks, process comments, etc.). If you need to retain data, you can use Revoke Workflow Instance

Usage Scenarios

  • In cross-application scenarios, after other applications publish app events and this application listens to the published events, delete the workflow instance
  • Delete the workflow instance after triggers such as scheduled tasks, form listeners, and button controls
  • Delete the process instance after third-party calls to the application API interface