cancel
Showing results for 
Search instead for 
Did you mean: 

Read-only process variables

mathiasd
Champ in-the-making
Champ in-the-making
Hi,

Is there a way to declare some "read-only" process variables ?
4 REPLIES 4

jbarrez
Star Contributor
Star Contributor
No. What is the use case for it?

mathiasd
Champ in-the-making
Champ in-the-making
I would like to develop an API for creating easily workflows.
API users are not allowed to access services (runtimeService, taskService etc.), they can only write "Script Tasks". In these script tasks, they have access to some variables and I would like to control accesses on these variables (which are java objects)
A solution could be to have only private members and no setters, but I would like that two instances of the same class could have different rights access.

I'm not sure to be clear ^^

jbarrez
Star Contributor
Star Contributor
I believe I get what you are trying to do, but it's not possible with Activiti currently.

mathiasd
Champ in-the-making
Champ in-the-making
I believe I get what you are trying to do, but it's not possible with Activiti currently.

Ok, thanks.