WfProcess process = wfActivity.container();
WfProcessMgr manager = process.manager();
workflowActivity.setName(wfActivity.name());
workflowActivity.setState(wfActivity.state());
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()));