newProcessInstance.setDescription(description);
newProcessInstance.setKeyword(keyword);
newProcessInstance.setStatus(ProcessStatus.NEW);
{
ProcessInstanceSimpleAttribute attr = new ProcessInstanceSimpleAttribute();
attr.setKey("creator");
attr.setValue(creator.getLogin());
newProcessInstance.addAttribute(attr);
attr = new ProcessInstanceSimpleAttribute();
attr.setKey("creatorName");
attr.setValue(creator.getRealName());
newProcessInstance.addAttribute(attr);
}
ProcessInstanceSimpleAttribute attr = new ProcessInstanceSimpleAttribute();
attr.setKey("source");
attr.setValue(source);
newProcessInstance.addAttribute(attr);
ctx.getProcessInstanceDAO().saveProcessInstance(newProcessInstance);
if(internalId == null)