01-07-2009 10:20 AM
<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>
01-07-2009 10:50 AM
01-07-2009 11:28 AM
var task = workflow.getTaskByID(taskID);
task.properties["someProperty"] = "someValue";
01-07-2009 12:34 PM
taskInstance.id = "loquesea";
01-07-2009 01:49 PM
01-08-2009 03:07 AM
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: }
01-08-2009 02:23 PM
01-08-2009 02:48 PM
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.