cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing form property data into service task delegaate

ashay
Champ on-the-rise
Champ on-the-rise
Hi,

I am creating one process diagram.

start event –> UserTask(accepting form parameter) –> service task(delegate in java) –> end event.

I want to access parameters from usestask into service task…
is it possible ?

if yes, please help me.


Regards,
Ashay
4 REPLIES 4

ashay
Champ on-the-rise
Champ on-the-rise
I want to access the UserTask parameter in Service Task Delegate for requesting an API.

eg For Saving Data into MyTable(present in other database), I want to fetch parameters supplied from UserTask and save them into MyTable using API.


Regards,
Ashay

trademak
Star Contributor
Star Contributor
Hi Ashay,

What do you mean with "UserTask parameters" ? Are you referring to form properties?
If so, you can access the submitted values via the process variables.

Best regards,

ashay
Champ on-the-rise
Champ on-the-rise
Thanks for replying.


1. I want to access form properties for further processing depending on values set to them.
2. I am getting null for [ String username = (String) execution.getVariable("username"); ]. execution is of type DelegateExecution.

How do I get these values?

Regards,
Ashay

jbarrez
Star Contributor
Star Contributor
1. They are stored as process variables and can be accessed later on like regular variables
2. Check which values you have available in the database. Is 'username' the id of the form property?