cancel
Showing results for 
Search instead for 
Did you mean: 

Add propeties for Task on Alfresco Activiti Modeler

tunglk
Champ in-the-making
Champ in-the-making
Hi all,

I want to add a propertie for User Task on edit modeler.

As image:
[img]http://www.upsieutoc.com/images/2016/01/04/Capture51b59.png[/img]

in red circle second, i want display an other propeties ( i'm define) on this panel.

How can i do for it?

Thank so much!
13 REPLIES 13

tunglk
Champ in-the-making
Champ in-the-making
Someone can help me?

jbarrez
Star Contributor
Star Contributor
The pallette and properties are driven from https://github.com/Activiti/Activiti/blob/master/modules/activiti-webapp-explorer2/src/main/resource....

We haven't documented yet how to do that. But this should give you an idea: https://github.com/Activiti/Activiti/commit/a67374d65b93b22590da9e45e149e5433c35408e, here I added the 'terminateAll' property to the terminate end event.

tunglk
Champ in-the-making
Champ in-the-making
Thanks for your powerful help!

tunglk
Champ in-the-making
Champ in-the-making
@jbarrez
I add a properties with: "type" : "kisbpm-multiinstance". But list of value just: none, parellel, sequential.
How to change type of properties as combobox and list of value is my define?
Thanks you so much.

tunglk
Champ in-the-making
Champ in-the-making
I just add a variable "abc" on: activiti-bpmn-model/src/main/java/org.activiti.bpmn.model.UserTask.java
And when i use rest api to get all variable of Task, the api can response list variable but no have "abc" properties.

You can help me for solution to do it? Thanks you!

tunglk
Champ in-the-making
Champ in-the-making
@jbarrez, can you help me for this?

jbarrez
Star Contributor
Star Contributor
"I add a properties with: "type" : "kisbpm-multiinstance". But list of value just: none, parellel, sequential."

That's being driven by this: https://github.com/Activiti/Activiti/blob/master/modules/activiti-webapp-explorer2/src/main/webapp/e...

tunglk
Champ in-the-making
Champ in-the-making
My values is non static as define on html file. My values get from database, but i can't do it with angularjs because it is client side.
Can i do it with server code to put values to html file?

tunglk
Champ in-the-making
Champ in-the-making
@jbarrez,
I added "abc" properties into UserTask. But how to get this properties of task via rest api (/runtime/tasks).
In activiti engine, i add one row on act_ru_task table (sql create). And on entity on (activiti-engine/src/main/resource/org/activiti/db/mapping/entity/Task.xml) change too.

But when i start process, new taskinstance is created. But on act_run_task, "abc" colum no value.
My target is: save this properties of UserTask and get this via rest api.
I hope you have time to help me.
Thanks!