Starting the process with variables to be set in activity scope

Hi,
I have a use case where I want to set process variables in one activity scope like camunda sets input/output variables. The reason I want this is as the name of key will be same for all the activities.
Ex: I have “taskDetails” key which have different value for each activity. So, when the externalTask fetches, it returns the variable for that activity only.
How can I do it? Is it possible to do it while starting the process.

Note: I am interacting with Camunda as a service using Rest API.
@Ingo_Richtsmeier

Hi @sagu,

When you start the process you can only set process variables as no other scope exists at this time. The activity scopes are created once the process instance reaches the activity.

The only option is to map process variables with input-mapping into the activity scope: https://docs.camunda.org/manual/7.13/user-guide/process-engine/variables/#input-output-variable-mapping

Hope this helps, Ingo