12-06-2013 08:32 PM
<type name="jiswf:privateMessage">
<parent>bpm:startTask</parent>
<properties>
<property name="jiswf:toName">
<type>d:text</type>
<mandatory>true</mandatory>
<multiple>false</multiple>
</property>
<property name="jiswf:privateMessage">
<type>d:text</type>
<mandatory>true</mandatory>
<multiple>false</multiple>
</property>
</properties>
</type>
WorkflowDefinition wfDefinition = workflowService.getDefinitionByName("activiti$privateMessageProcess");
Map<QName, Serializable> vars = new HashMap<QName, Serializable>();
vars.put(QName.createQName(AlfrescoModel.WORKFLOW_NAMESPACE,"toName"),toName);
vars.put(QName.createQName(AlfrescoModel.WORKFLOW_NAMESPACE,"privateMessage"),message);
workflowService.startWorkflow(wfDefinition.getId(), vars);
Map<String,Object> vars = task.getVariables();
Iterator<String> keys = vars.keySet().iterator();
while(keys.hasNext()) {
String key = keys.next();
System.out.println("Key:"+key+" Value:"+vars.get(key));
}
Key:jiswf_toName Value:joe
Key:jiswf:privateMessage Value:asdfasdf
12-06-2013 11:38 PM
12-06-2013 11:42 PM
12-07-2013 09:32 AM
12-09-2013 09:54 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.