07-04-2011 12:16 PM
07-05-2011 04:54 AM
07-05-2011 05:16 AM
07-05-2011 05:46 AM
Yes in order to create the new workflow you need to fist create one workflow node set all that related properties in that.
For assignee you need to create start task and then set assignee as its parameter. than you need to update the start task.
So it will trigger the workflow.
07-05-2011 06:23 AM
07-05-2011 06:28 AM
WorkflowService workflowService = serviceRegistry.getWorkflowService();
NodeRef workflowNodeRef = workflowService.createPackage(null);
Map<QName, Serializable> properties = new HashMap<QName, Serializable>();
Date date = new Date(System.currentTimeMillis());
properties.put(WorkflowModel.ASSOC_PACKAGE, workflowNodeRef);
NodeRef personNodeId = personService.getPerson("USER_TEST");
properties.put(WorkflowModel.ASSOC_ASSIGNEE,personNodeId );
properties.put(WorkflowModel.PROP_DUE_DATE, date);
properties.put(WorkflowModel.PROP_DESCRIPTION, "PROP_DESCRIPTION");
properties.put(WorkflowModel.PROP_WORKFLOW_DUE_DATE, date);
properties.put(WorkflowModel.PROP_WORKFLOW_DESCRIPTION, "PROP_WORKFLOW_DESCRIPTION");
WorkflowPath path = workflowService.startWorkflow(wid, parameters);
WorkflowTaskQuery query = new WorkflowTaskQuery();
query.setTaskState(WorkflowTaskState.COMPLETED);
query.setTaskState(WorkflowTaskState.IN_PROGRESS);
07-05-2011 06:45 AM
07-05-2011 06:54 AM
07-05-2011 07:46 AM
07-05-2011 08:56 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.