<type name="wfj:OC1">
<title>Press Release</title>
<parent>bmp:startTask</parent>
<properties>
<property name="wfj:ID">
<title>ID</title>
<type>d:text</type>
</property>
</properties>
</type>
<task-node name="Vendedor">
<task name="wfj:OC1" swimlane="initiator">
<event type="task-create" >
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
taskInstance.setVariable("ID","juan");[b] /* Aqui asiganr un valor a la variable */[/b]
</script></action>
</event>
</task>
<transition to="Documentos Proformas" name="Aceptar OC Cliente">
</transition>
<transition to="OC Rechazadas" name="Rechazar OC Cliente">
</transition>
</task-node>
var task = workflow.getTaskByID(taskID);
task.properties["someProperty"] = "someValue";
taskInstance.id = "loquesea";
161: public static String[] getGlobalIdParts(String globalId)
162: {
163: String[] parts = globalId.split(ID_SEPERATOR_REGEX);
164: if (parts.length != 2)
165: {
166: throw new WorkflowException("Invalid Global Id '" + globalId + "'");
167: }
168: return parts;
169: }
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.