cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic Assigment

tschernonoll
Champ in-the-making
Champ in-the-making
Hi All,
i try to automate the assignment of a task by the engine.
i have a very easy task where a user enters some information. when the user commits the form he should get a new task where he can check if the informations are valid or not. if they are valid the task ends if not he get back to the enter information task.
[attachment=1]processdiagramm.jpg[/attachment]

What do i have to enter in the task properties
[attachment=0]prperties.jpg[/attachment]
11 REPLIES 11

frederikherema1
Star Contributor
Star Contributor
Click in the property-panel on the right, on the tab "Form" (under the currently selected "Main Config")

tschernonoll
Champ in-the-making
Champ in-the-making
thx for the fast answer. is there a document abut the usage of the form propertie configurator or a basic example?
because i have no idea how to use this tool.

tschernonoll
Champ in-the-making
Champ in-the-making
I tried to understand the configuration of the form properties but is there a document which describes this?

[attachment=0]formpropertieconfiguration.jpg[/attachment]

trademak
Star Contributor
Star Contributor
Hi,

In the user guide this is explained very nicely:

http://activiti.org/userguide/index.html#formProperties

Best regards,

tschernonoll
Champ in-the-making
Champ in-the-making
so i played  a little but still have my problems.

[attachment=2]nextmainconfig.jpg[/attachment]
in this demo process i try to choose the next participant.

[attachment=1]nextuserform.jpg[/attachment]
i can choose between two users kermit(the admin account)
and a new user stud1

[attachment=0]nextproperties.jpg[/attachment]
as you can see i have a formproperty user which is a string type variable and should hold the next user.

when i start a process instance i get this exception

tschernonoll
Champ in-the-making
Champ in-the-making
[attachment=0]exception.jpg[/attachment]

i found in the example vacation request process the line
<startEvent id="request" activiti:formKey="org/activiti/examples/taskforms/request.form" />i assume that this line allocate a form to the start event.

but when i try to use the same paradigm in the activiti designer the automated code completion removes my change and rearrange the code to the diagram.

also i dont have a formproperty  getUser to get the user of the form.

i don't see a way to assign tasks dynamic to different users.

frederikherema1
Star Contributor
Star Contributor
Hi,

Variable-names cannot contain dots when you want to use them in expressions. So "first.user", will actually try to find a variable with name "first" and call "getUser()".

What does the stacktrace in your tomcat say?

tschernonoll
Champ in-the-making
Champ in-the-making
this is all kind off pseudocode.
i have no conclusion how i should solve this.
in the expression next.user should acess the user variable. it is not the same as "next.user" which is a string.
also i have no idea what the tomcat is doing.
i just use the designer.

is there no document about user assigment. because all i found is the performer type and expression way.
i works pretty good for predecided workflows but not for a dynamic approach.

frederikherema1
Star Contributor
Star Contributor
I I understand you correctly, you want to fill in a username in a form, and assign the next task to that user?