How to use Workflow custom task model with associations?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2015 03:56 AM
Hello,
I am developing workflow solution based on Alfresco (4.2f) Activiti and Workdesk (4.2.0).
Our task model contains associations to other custom objects that are in the repository (those object inherit from cm:content, and cm:folder).
In Share I can start the workflow, and select our objects in a pop-up window, so the task model declaration itself i correct, I guess.
I cannot find a way to configure Workdesk Launch Pad, to show these associated object fields in any way. It is not even showing label with empty text field.
I have tried to create an association to cm
erson - directly, or via aspect (as it is in bpm:assignee), just for test purpose. When I use mandatory aspect bpm:assignee it works fine, but when I use aspect sc:myperson, I get nothing…
Is it possible to include such associations int lauch pad forms?
I assume it may be nessesary to implement custom FieldControl, which I have tried, but with no luck - I can get the associations displayed on the form.
Thanks
PKIE
I am developing workflow solution based on Alfresco (4.2f) Activiti and Workdesk (4.2.0).
Our task model contains associations to other custom objects that are in the repository (those object inherit from cm:content, and cm:folder).
In Share I can start the workflow, and select our objects in a pop-up window, so the task model declaration itself i correct, I guess.
I cannot find a way to configure Workdesk Launch Pad, to show these associated object fields in any way. It is not even showing label with empty text field.
I have tried to create an association to cm

Is it possible to include such associations int lauch pad forms?
I assume it may be nessesary to implement custom FieldControl, which I have tried, but with no luck - I can get the associations displayed on the form.
Thanks
PKIE
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2015 04:48 AM
Here i got the solution for custom workflow with custom form..
http://stackoverflow.com/questions/19645321/alfresco-workflow-share-form
http://stackoverflow.com/questions/19645321/alfresco-workflow-share-form

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2015 05:12 AM
Hi,
Thanks for your reply, but did you manage to run this workflow in Alfresco Workdesk (not Alfresco Share)?
And I can not see any association in the task model. I have no problems with normal properties, only with associations to other objects.
Thanks for your reply, but did you manage to run this workflow in Alfresco Workdesk (not Alfresco Share)?
And I can not see any association in the task model. I have no problems with normal properties, only with associations to other objects.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2015 09:49 AM
OK. I have finally managed to display association fields in Launch Pad.
I have noticed in ow_adpalfrescobpm-4.2.0.jar - OwAlfrescoBPMObjectClass:53
<java>// bpm_*assignee properties are defined as Associations. The CMIS adapter does not yet handle Associations.
public static final String PROP_BPM_ASSIGNEE = "bpm:assignee";
public static final String PROP_BPM_ASSIGNEES = "bpm:assignees";
public static final String PROP_BPM_GROUP_ASSIGNEE = "bpm:groupAssignee";
public static final String PROP_BPM_GROUP_ASSIGNEES = "bpm:groupAssignees";</java>
So I have added my own associations, and then modiefied a bit of code to register those changes.
I have noticed in ow_adpalfrescobpm-4.2.0.jar - OwAlfrescoBPMObjectClass:53
<java>// bpm_*assignee properties are defined as Associations. The CMIS adapter does not yet handle Associations.
public static final String PROP_BPM_ASSIGNEE = "bpm:assignee";
public static final String PROP_BPM_ASSIGNEES = "bpm:assignees";
public static final String PROP_BPM_GROUP_ASSIGNEE = "bpm:groupAssignee";
public static final String PROP_BPM_GROUP_ASSIGNEES = "bpm:groupAssignees";</java>
So I have added my own associations, and then modiefied a bit of code to register those changes.
