mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Test of script import within workflow definition.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6199 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
31
source/test-resources/jbpmresources/test_scriptimport.xml
Normal file
31
source/test-resources/jbpmresources/test_scriptimport.xml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="test_scriptimport">
|
||||||
|
<swimlane name="initiator"></swimlane>
|
||||||
|
|
||||||
|
<start-state name="start">
|
||||||
|
<task name="submit" swimlane="initiator"/>
|
||||||
|
<transition name="" to="review">
|
||||||
|
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
|
||||||
|
<script>
|
||||||
|
<expression>
|
||||||
|
<![CDATA[
|
||||||
|
<import resource="/Company Home/Data Dictionary/Scripts/test return value.js">
|
||||||
|
]]>
|
||||||
|
</expression>
|
||||||
|
<variable name="theresult" access="write" />
|
||||||
|
</script>
|
||||||
|
</action>
|
||||||
|
</transition>
|
||||||
|
<transition name="end" to="end"/>
|
||||||
|
</start-state>
|
||||||
|
|
||||||
|
<node name="review">
|
||||||
|
<script>
|
||||||
|
System.out.println(theresult);
|
||||||
|
</script>
|
||||||
|
</node>
|
||||||
|
|
||||||
|
<end-state name="end"></end-state>
|
||||||
|
|
||||||
|
</process-definition>
|
Reference in New Issue
Block a user