You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have written a python pyzeebe worker that is supposed to interact with my database usinng the values that the variables of the previous user task in the Camunda BPMN hold. I have defined a user task with a form. I have also created a service task and defined the taskDefinition. It seems like the worker can indeed communicate with my zeebe but it is unable to fetch the variables of the form.
frompyzeebeimportZeebeWorker, Job, create_insecure_channelimportasyncioimportpsycopg2importloggingasyncdefhandle_database_transaction(job: Job) ->dict:
variables=job.variables# Log the received variables at INFO levellogging.info(f"Received variables: {variables}")
selected_date=variables.get('selected_date')
selected_project_id=int(variables.get('selected_project_id')) ifvariables.get('selected_project_id') elseNone# Log the extracted field valueslogging.info(f"Selected date: {selected_date}, Project ID: {selected_project_id}")
# if selected_date and selected_project_id is not None, I perform the insert query with my database.return {}
I have written a python pyzeebe worker that is supposed to interact with my database usinng the values that the variables of the previous user task in the Camunda BPMN hold. I have defined a user task with a form. I have also created a service task and defined the taskDefinition. It seems like the worker can indeed communicate with my zeebe but it is unable to fetch the variables of the form.
And here is the MappingIO in my BPMN:
What part of the procedure am I doing wrong?
Desktop (please complete the following information):
Additional context
This issue seems to be raised by other before. Just making sure...
#311
#315
The text was updated successfully, but these errors were encountered: