Advanced Workflow Tutorials
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2012 10:40 AM
If you are new to Alfresco advanced workflows using Activiti, please read the <a href="http://ecmarchitect.com/alfresco-developer-series-tutorials/workflow/tutorial/tutorial.html">Advanced Workflow Tutorial</a> available at ecmarchitect.com. The tutorial includes multiple examples and source code.
Jeff
Jeff
Labels:
- Labels:
-
Archive
17 REPLIES 17

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2013 05:11 AM
you can pass variable to your workflow which will store a nodeRef to the document(s) which are needed in the workflow.
Regards,
Pawel Rzeszowski.
Regards,
Pawel Rzeszowski.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2013 02:03 AM
Hi Jeff
Thank you for providing nice tutorial .. i have read ur second edition , can you also provide tutorials on rules and actions , i am currently applying rule on folder through execute script, i want that custom workflow trigger and document should move to desired location.. i need help on this
Thank you for providing nice tutorial .. i have read ur second edition , can you also provide tutorials on rules and actions , i am currently applying rule on folder through execute script, i want that custom workflow trigger and document should move to desired location.. i need help on this
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2013 07:03 PM
All of my tutorials live here: http://ecmarchitect.com/alfresco-developer-series
The rules and actions tutorial is linked to from that page, or you can go directly to it here: http://ecmarchitect.com/images/articles/alfresco-actions/actions-article-2ed.pdf
The second edition was tested on 4.0.c. I have not personally tested it against any 4.2 community versions, so if you try it out, I'll be curious to hear how it goes.
Jeff
The rules and actions tutorial is linked to from that page, or you can go directly to it here: http://ecmarchitect.com/images/articles/alfresco-actions/actions-article-2ed.pdf
The second edition was tested on 4.0.c. I have not personally tested it against any 4.2 community versions, so if you try it out, I'll be curious to hear how it goes.
Jeff
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2014 02:57 AM
HI Jeff
Thenks for you provide our so a book,I running the Publish WhitePaper to Web(activiti) workflow,I found some error,Could you help me?
first,when a user edit the task and try to save it,appear error as foollows:
org.activiti.engine.ActivitiException: Exception while invoking TaskListener: Exception while invoking TaskListener: 00160039 Failed to execute supplied script: 00160038 ReferenceError: "scwf_approveCount" is not defined. (AlfrescoJS#2) and org.activiti.engine.ActivitiException: Unknown property used in expression: ${scwf_approveCount < 2},In fact the property scwf_approveCount exists why ?
Second ,I feel confuse that there are two groups in this workflow named GROUP_Operations and GROUP_Marketing,I have added some users in it,but when user login the share,it is surprise that the user don't find the task why?
thanks in advances Jeff
Thenks for you provide our so a book,I running the Publish WhitePaper to Web(activiti) workflow,I found some error,Could you help me?
first,when a user edit the task and try to save it,appear error as foollows:
org.activiti.engine.ActivitiException: Exception while invoking TaskListener: Exception while invoking TaskListener: 00160039 Failed to execute supplied script: 00160038 ReferenceError: "scwf_approveCount" is not defined. (AlfrescoJS#2) and org.activiti.engine.ActivitiException: Unknown property used in expression: ${scwf_approveCount < 2},In fact the property scwf_approveCount exists why ?
Second ,I feel confuse that there are two groups in this workflow named GROUP_Operations and GROUP_Marketing,I have added some users in it,but when user login the share,it is surprise that the user don't find the task why?
thanks in advances Jeff
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2014 06:50 AM
Hi Jeff
I have some problems,when I running the example in the advanced-workflow-tuturial second edition,I start workflow named Publish Whitepaper to web(activiti) then I saved the workflow,
there are some question as follows
First:When a reviewer edit this task appear "org.activiti.engine.ActivitiException: Exception while invoking TaskListener: Exception while invoking TaskListener: 00150043 Failed to execute supplied script: 00150042 ReferenceError: "scwf_approveCount" is not defined. (AlfrescoJS#2)" error,in fact the property scwf_approveCount exists in activitiPublishWhitepaper.bpmn20.xml file,could you tell me a solution?
Second,there are two groups in publish whitepaper to web workflow,At the begin of starting this workflow,we must create two groups group_operations and group_marketing then add user to the groups,I have did it,but I found the user in the groups don't have the task, I feel fuzzy,could you tell me the solutions?
thank you in advances!
I have some problems,when I running the example in the advanced-workflow-tuturial second edition,I start workflow named Publish Whitepaper to web(activiti) then I saved the workflow,
there are some question as follows
First:When a reviewer edit this task appear "org.activiti.engine.ActivitiException: Exception while invoking TaskListener: Exception while invoking TaskListener: 00150043 Failed to execute supplied script: 00150042 ReferenceError: "scwf_approveCount" is not defined. (AlfrescoJS#2)" error,in fact the property scwf_approveCount exists in activitiPublishWhitepaper.bpmn20.xml file,could you tell me a solution?
Second,there are two groups in publish whitepaper to web workflow,At the begin of starting this workflow,we must create two groups group_operations and group_marketing then add user to the groups,I have did it,but I found the user in the groups don't have the task, I feel fuzzy,could you tell me the solutions?
thank you in advances!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2014 03:50 AM
Hi,
on page 32 the tutorial states that variables inside a script task (and the whole Javascript code snippet) should be written between !CDATA:
In the workflow definition you attached the CDATA section is missing.
Hope this helps.
Rgeards,
Andrea
on page 32 the tutorial states that variables inside a script task (and the whole Javascript code snippet) should be written between !CDATA:
<scriptTask id="scripttask1" name="Submit" scriptFormat="javascript"><script><![CDATA[var scwf_approveCount = 0; var scwf_tpApproved =false;]]></script></scriptTask>
In the workflow definition you attached the CDATA section is missing.
Hope this helps.
Rgeards,
Andrea
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2014 04:18 AM
Hi abarisone
First,thank you for your answer,I have modify like what you said,but it does't work,do you know what another reasons cases this trouble?thank you for your answer again!
First,thank you for your answer,I have modify like what you said,but it does't work,do you know what another reasons cases this trouble?thank you for your answer again!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2014 11:23 AM
Comparing the snippet above with the latest version of the workflow, I notice that the activiti:autoStoreVariables attribute is missing. I wonder if that could be it. See below.
Jeff
<scriptTask id="scripttask1" name="Submit" scriptFormat="javascript" activiti:autoStoreVariables="true"> <script>var scwf_approveCount = 0; var scwf_tpApproved = false;</script> </scriptTask>
Jeff
