Flow_17db3yp
This is an example **Manual Task**. A **Manual Task** is designed to allow someone to complete a task outside of the system and then report back that it is complete. You can click the *Continue* button to proceed. When you are done running this process, you can edit the **Process Model** to include a:
* **Script Task** - write a short snippet of python code to update some data
* **User Task** - generate a form that collects information from a user
* **Service Task** - communicate with an external API to fetch or update some data.
You can also change the text you are reading here by updating the *Instructions* on this example manual task.
Flow_17db3yp
Flow_12n5xe2
from org.camunda.bpm.engine.delegate import BpmnError
try:
# Your script logic here
# For example, attempting to open a non-existent file
with open('non_existent_file.txt', 'r') as file:
data = file.read()
except Exception as e:
# Constructing error message
error_message = str(e)
# Throwing BPMN error with a specific error code and message
# "1001" is the error code, and error_message contains the exception details
raise BpmnError("1001", error_message)
Flow_12n5xe2
Flow_012hzon
Flow_012hzon
Flow_1jvtnqw
Flow_1jvtnqw
Flow_03t85p8
Flow_03t85p8