User Task and a program Task

Is it possible for a user to input that the program considers numbers from 1 to 10, and for the program to generate any number within that range for the user to see in a user task? How would one accomplish this?

Hello again @anon64962691 :wave:
do I understand your question right:

  1. You want to implement a service task that returns an integer to the process instance
  2. You want to access that variable in a user task

If my assumption is correct - which programming language do you use to implement a service task? You would always need to make sure that you complete the task and return the variable to the instance. In the user task you then need to reference the exact same variable name as previously to access the value.

Maybe you have some more precise information for me here. :slight_smile:
Looking forward to it!
Thomas

I would like to do it using Python because I prefer Python over Java. My idea is to have three tasks. In the first task, the user specifies an interval. In the next task, the program takes the user’s input and selects any number from that interval. In the last task, the program displays the chosen value to the user. How do I handle the values and how do I incorporate something like this ?

Have a good look at the packages found here and here

These are community packages, so not supported by Camunda directly.

Are there any videos on how to set it up? Are there any pre-built processes or examples available to see how it is implemented?

In the prior link, there’s an examples folder.

Thank you. How do I insert the code into the service task? Is there a video tutorial available?

You don’t insert code into the service task.
As noted in your other thread (and now you see why multiple topics and asking too much at the same time gets confusing…), the worker connects to Camunda, collects the task assignment, and then does the work.

You are right. I will make a new thread.

FYI: Here is an exemplary implementation of a Python client using Pyzeebe

I have done it with Java, but I still don’t know how to integrate it.