Schedule Business Process via Bot Task
package
Download the Scheduler package.
Description
The attached Business Process is used to emulate the functionality of the Scheduler with the help of a Bot Config. You can add this custom logic and use it if you want to stop a Business Process that is not completed and re-run it over time.
The Business Process workflow is as follows:
Stop Run for the record in Data Store (with the IN_PROGRESS status and Data Source UUID from the ETL form) via the REST API call and set the STOPPED status.
Run the Business Process with Data Source UUID from ETL form using the start-task plugin. The plugin returns the Run UUID. The Bot Config inserts a new record to the Data Store with the IN_PROGRESS status for this Data Source UUID.
Using the release plugin, the Bot Config is turned to Sleep for a specific time and then executes this step again.
Optionally, you can add the code below to the Bot Config to update the record status in the Data Store to COMPLETED in the Business Process:
<script></script> <datastore name="SchedulerDatastore"> update @this set status = 'COMPLETED' where run_uuid=\${run_uuid}; </datastore>
Preparation
Add the Secure Storage variable:
Attribute Value alias basic.hash.for.restkey basic.hash.for.restvalue <you credentials hash>Create the SchedulerDatastore Data Store for monitoring. Example of the record in the Data Store:

Import the Business Process with Scheduler to the instance.
Procedure
- Start the imported Business Process with Scheduler and provide Data Source UUID on the ETL form for the Business Process you want to run.
- To find Data Source UUID, go to Data Sources > View all, set the filter to Composite, and find your Business Process by title.
- Open the Business Process, go to the Enter Property tab and see the UUID in the Data Source UUID field.