How you manage to get an Object as outcome with a User task

Here’s a short update for those who, just as I did, searched for hours to the solution of getting an outcome object instead of the standard outcome string of a Human Task. You need to know this one detail if you want to get the object as an outcome. And at the end it makes sense, as almost everything does if you know what to do ;-).

Here it goes…

 

Below you’ll see a partial BPMN proces where we have not instantiated the user task:How you manage to get an Object as outcome with a User task partial model 1

I have created with the BPM Project Navigator in the business Catalog a ContactType object to record the contact data of event visitors.

How you manage to get an Object as outcome with a User task create module

Through the Structure pane I have realised a Process Data Object from the type “contactobject” in order to use it as an (empty)input object for our human task. `We want to instantiate the user task with the “contactObject” in a way we can fill it at the beginning and then send it to the next activity within our process.

How you manage to get an Object as outcome with a User task structure pane

If we implement the user taks via the properties we can add parameters through the “Create human task” area. I will first go in to the situation in wich you cannot find the ContactObject in the outcame section, but the standard outcome. Click on add parameters and drag and drop the ProcessContactObject into the empty area under the parameter section.

How you manage to get an Object as outcome with a User task add human task parameter

How you manage to get an Object as outcome with a User task selected object

After we accepted the further settings we can look at the associations and find out that there is no object in the outcome section:

How you manage to get an Object as outcome with a User task data association

In order to get the ContactObject in the outcome section we must tell JDeveloper that when the ContactObject leaves the user task it must not be editable, we can do that in the “Create human task” section

.How you manage to get an Object as outcome with a User task data association 2

If we now look at the data association section again we find ourselves the ContactObject in the outcome section:

How you manage to get an Object as outcome with a User task data association 3

This is the way we can go further with our process while using the filled objects.

Hope I can help those of you who searched for hours to solve this issue.