As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Map<String, String> param = new HashMap<String, String>(); param.put("bpm:workflowDescription", "Something"); // etc etc Reference reference = new Reference(store, null, null); ActionUtils.executeAction(reference, "start-workflow", param);
for (Map.Entry<String, Serializable> entry : paramValues.entrySet()) { String key = entry.getKey(); QName qname = QName.createQName(entry.getKey(), namespaceService); if (key.equals("dnetwf:checker")) { value = personService.getPerson((String)entry.getValue()); workflowParameters.put(qname, value); } }
One of these custom fields is a person (like the assignee). So I can provide the username as a string parameter from the external application using the ActionUtils.executeAction method.