Adding candidate starters in Activiti Modeler

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2014 09:07 AM
since the Activiti Modeler already contains Activiti specific elements, what effort is it to add candidate start users and candidate start groups? Because in my opinion, those are the last important elements missing in the Activiti Modeler. If those attributes were included, simple processes (without java / service logic) could directly be modeled and deployed in the Activiti Modeler without the need of importing it into Eclipse (just for adding the candidate starters).
Is this on the roadmap? What components must be altered in the Modeler? This extension would make the Activiti Modeler a bit more enterprise compliant.
Best regards
Ben
- Labels:
-
Archive

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2014 06:19 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2014 03:19 AM
That's not a big effort. Our priority currently lies with the Engine, so it's more a matter of priority.
Best regards,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2014 03:34 AM
Thanks and best regards
Ben

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2014 05:32 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2014 11:09 AM
It would only be a change in the stencilset.json definition for this issue. To be able to transform to BPMN XML also a JSON converter change is needed.
You can look at the usertaskassignment definition in stencilset.json as an example.
Best regards,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2014 07:43 AM
thanks for your reply but I am still stuck. After the "processbase", I added those lines in the stencilset.json:
<code>
{
"name" : "processassignment",
"properties" : [ {
"id" : "processassignment",
"type" : "Complex",
"title" : "Candidates",
"value" : "",
"description" : "Assignment definition for the process",
"popular" : true,
"complexItems" : [ {
"id" : "assignment_type",
"name" : "Type",
"name_de" : "Typ",
"type" : "Choice",
"value" : "",
"width" : 100,
"optional" : false,
"items" : [ {
"id" : "p1",
"title" : "Candidate users",
"title_de" : "HumanPerformer",
"value" : "candidateUsers",
"refToView" : ""
}, {
"id" : "p2",
"title" : "Candidate groups",
"title_de" : "PotentialOwner",
"value" : "candidateGroups",
"refToView" : ""
} ]
}, {
"id" : "resourceassignmentexpr1",
"name" : "Resource assignment expression",
"name_de" : "Zuordnungs-Ausdruck",
"type" : "String",
"description" : "This defines the expression used for the resource assignment.",
"description_de" : "Definiert den Ausdruck, der fr die Zordung von Ressourcen genutzt wird.",
"value" : "",
"width" : 200,
"optional" : true
} ]
} ]
}
</code>
Therefore, the whole "processbase" definition looks like this:
<code>
{
"name" : "processbase",
"properties" : [ {
"id" : "process_id",
"type" : "String",
"title" : "Process identifier",
"value" : "process",
"description" : "Unique identifier of the process definition.",
"popular" : true
}, {
"id" : "process_author",
"type" : "String",
"title" : "Process author",
"value" : "",
"description" : "Author of the process definition.",
"popular" : false
}, {
"id" : "process_executable",
"type" : "Choice",
"title" : "Executable",
"value" : "Yes",
"description" : "Define if the process is executable.",
"popular" : true,
"items" : [ {
"id" : "no",
"title" : "No",
"value" : "No"
}, {
"id" : "yes",
"title" : "Yes",
"value" : "Yes"
}]
}, {
"id" : "process_version",
"type" : "String",
"title" : "Process version string (documentation only)",
"value" : "",
"description" : "Version identifier for documentation purpose.",
"popular" : false
}, {
"id" : "process_namespace",
"type" : "String",
"title" : "Target namespace",
"value" : "http://www.activiti.org/processdef",
"description" : "Target namespace for the process definition.",
"popular" : false
} ]
}, {
"name" : "processassignment",
"properties" : [ {
"id" : "processassignment",
"type" : "Complex",
"title" : "Candidates",
"value" : "",
"description" : "Assignment definition for the process",
"popular" : true,
"complexItems" : [ {
"id" : "assignment_type",
"name" : "Type",
"name_de" : "Typ",
"type" : "Choice",
"value" : "",
"width" : 100,
"optional" : false,
"items" : [ {
"id" : "p1",
"title" : "Candidate users",
"title_de" : "HumanPerformer",
"value" : "candidateUsers",
"refToView" : ""
}, {
"id" : "p2",
"title" : "Candidate groups",
"title_de" : "PotentialOwner",
"value" : "candidateGroups",
"refToView" : ""
} ]
}, {
"id" : "resourceassignmentexpr1",
"name" : "Resource assignment expression",
"name_de" : "Zuordnungs-Ausdruck",
"type" : "String",
"description" : "This defines the expression used for the resource assignment.",
"description_de" : "Definiert den Ausdruck, der fr die Zordung von Ressourcen genutzt wird.",
"value" : "",
"width" : 200,
"optional" : true
} ]
} ]
},
{
"name" : "usertaskbase",…..
…….
…..
</code>
But when I open the modeler, I cannot see those new attributes. In addition, could you give me another hint what lines need to be changed in the JSON converter?
Thanks for your help and best regards
Ben

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2014 02:55 AM
Hi Tijs,
thanks for your reply. But I am still stuck. After the "processbase" definition, I added those lines here:
<code>
{
"name" : "processassignment",
"properties" : [ {
"id" : "processassignment",
"type" : "Complex",
"title" : "Processassignments",
"value" : "",
"description" : "Assignment definition for the process",
"popular" : true,
"complexItems" : [ {
"id" : "process_assignment_type",
"name" : "Type",
"name_de" : "Typ",
"type" : "Choice",
"value" : "",
"width" : 100,
"optional" : false,
"items" : [ {
"id" : "p1",
"title" : "Candidate users",
"title_de" : "HumanPerformer",
"value" : "candidateUsers",
"refToView" : ""
}, {
"id" : "p2",
"title" : "Candidate groups",
"title_de" : "PotentialOwner",
"value" : "candidateGroups",
"refToView" : ""
} ]
}, {
"id" : "resourceassignmentexpr1",
"name" : "Resource assignment expression",
"name_de" : "Zuordnungs-Ausdruck",
"type" : "String",
"description" : "This defines the expression used for the resource assignment.",
"description_de" : "Definiert den Ausdruck, der fuer die Zordung von Ressourcen genutzt wird.",
"value" : "",
"width" : 200,
"optional" : true
} ]
} ]
}
</code>
So the whole block looks like this:
<code>
{
"name" : "processbase",
"properties" : [ {
"id" : "process_id",
"type" : "String",
"title" : "Process identifier",
"value" : "process",
"description" : "Unique identifier of the process definition.",
"popular" : true
}, {
"id" : "process_author",
"type" : "String",
"title" : "Process author",
"value" : "",
"description" : "Author of the process definition.",
"popular" : false
}, {
"id" : "process_executable",
"type" : "Choice",
"title" : "Executable",
"value" : "Yes",
"description" : "Define if the process is executable.",
"popular" : true,
"items" : [ {
"id" : "no",
"title" : "No",
"value" : "No"
}, {
"id" : "yes",
"title" : "Yes",
"value" : "Yes"
}]
}, {
"id" : "process_version",
"type" : "String",
"title" : "Process version string (documentation only)",
"value" : "",
"description" : "Version identifier for documentation purpose.",
"popular" : false
}, {
"id" : "process_namespace",
"type" : "String",
"title" : "Target namespace",
"value" : "http://www.activiti.org/processdef",
"description" : "Target namespace for the process definition.",
"popular" : false
} ]
}, {
"name" : "processassignment",
"properties" : [ {
"id" : "processassignment",
"type" : "Complex",
"title" : "Processassignments",
"value" : "",
"description" : "Assignment definition for the process",
"popular" : true,
"complexItems" : [ {
"id" : "process_assignment_type",
"name" : "Type",
"name_de" : "Typ",
"type" : "Choice",
"value" : "",
"width" : 100,
"optional" : false,
"items" : [ {
"id" : "p1",
"title" : "Candidate users",
"title_de" : "HumanPerformer",
"value" : "candidateUsers",
"refToView" : ""
}, {
"id" : "p2",
"title" : "Candidate groups",
"title_de" : "PotentialOwner",
"value" : "candidateGroups",
"refToView" : ""
} ]
}, {
"id" : "resourceassignmentexpr1",
"name" : "Resource assignment expression",
"name_de" : "Zuordnungs-Ausdruck",
"type" : "String",
"description" : "This defines the expression used for the resource assignment.",
"description_de" : "Definiert den Ausdruck, der fuer die Zordung von Ressourcen genutzt wird.",
"value" : "",
"width" : 200,
"optional" : true
} ]
} ]
}
</code>
But those additions are not visible in the web modeler afterwoods. In addition, could you give me a hint want lines need to be changed in the JSON Converter? Since there are many classes, I did not succeed in finding the right place.
Thank you very much and best regards
Ben

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2014 03:43 AM
Best regards,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2015 09:13 AM
