03-09-2009 08:37 AM
03-09-2009 09:19 AM
03-09-2009 10:16 AM
<actions>
<action id="start_workflow">
<label-id>start_workflow</label-id>
<image>/images/icons/new_workflow.gif</image>
<evaluator>org.alfresco.web.action.evaluator.StartWorkflowEvaluator</evaluator>
<action>wizard:startWorkflow</action>
<action-listener>#{WizardManager.setupParameters}</action-listener>
<params>
<!– <param name="item-to-workflow">#{actionContext.id}</param> –>
</params>
</action>
03-10-2009 08:12 AM
1/ Starting advanced workflow does not attach any document to the process
In order to do that, You will surely have to override the StartWorkflowAction.java, get a look at the foundation services in order to create and manipulate documents.
If you wish to, let's keep this topic alive, because I'll soon have to achieve the same thing :
1/ Bypass the first step of the workflow wizard : the type of workflow will have to be automatically selected, depending on the type of document that triggered the action
2/ Have this workflow's package hold no document at first
3/ Create and manipulate a new document that will be attached to the process
03-10-2009 08:46 AM
03-10-2009 09:43 AM
You have to add it to the bpmackage
Maybe this will work :
bpm_package.children[0] = file;
03-10-2009 09:55 AM
03-10-2009 11:26 AM
03-10-2009 11:34 AM
<transition name="" to="end1">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
<variable name="bpm_package" access="read, write" />
<expression>
var dest = companyhome.childByNamePath("User Homes");
var file = dest.createFile("file_name");
file.save();
bpm_package.children[0]=file;
</expression>
</script>
</action>
</transition>
03-11-2009 06:55 AM
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.