workflowActivity.setProcessDefId(wfActivity.container().manager().name());
workflowActivity.setProcessId(wfActivity.container().key());
workflowActivity.setProcessName(wfActivity.container().name());
workflowActivity.setProcessVersion(manager.version());
workflowActivity.setPriority(String.valueOf(wfActivity.priority()));
workflowActivity.setProcessStatus(process.state());
// check for hash variable
if (WorkflowUtil.containsHashVariable(wfActivity.name())) {
WorkflowAssignment ass = new WorkflowAssignment();
ass.setProcessId(workflowActivity.getProcessId());
ass.setProcessDefId(workflowActivity.getProcessDefId());