cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced Workflow Tutorials

jpotts
World-Class Innovator
World-Class Innovator
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
17 REPLIES 17

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.

himanshuk4u
Champ in-the-making
Champ in-the-making
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

jpotts
World-Class Innovator
World-Class Innovator
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

rock_tu
Champ on-the-rise
Champ on-the-rise
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

rock_tu
Champ on-the-rise
Champ on-the-rise
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!

Hi,
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

rock_tu
Champ on-the-rise
Champ on-the-rise
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!

jpotts
World-Class Innovator
World-Class Innovator
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.


    <scriptTask id="scripttask1" name="Submit" scriptFormat="javascript" activiti:autoStoreVariables="true">
      <script>var scwf_approveCount = 0; var scwf_tpApproved = false;</script>
    </scriptTask>


Jeff
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.