mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Addition of "submitted" aspect to items submitted for web site review.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4620 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -16,7 +16,9 @@
|
||||
*/
|
||||
package org.alfresco.repo.workflow.jbpm;
|
||||
|
||||
import org.alfresco.repo.workflow.BPMEngineRegistry;
|
||||
import org.jbpm.graph.def.ActionHandler;
|
||||
import org.jbpm.graph.exe.ExecutionContext;
|
||||
import org.springframework.beans.factory.BeanFactory;
|
||||
import org.springframework.beans.factory.access.BeanFactoryLocator;
|
||||
import org.springframework.beans.factory.access.BeanFactoryReference;
|
||||
@@ -50,4 +52,17 @@ public abstract class JBPMSpringActionHandler implements ActionHandler
|
||||
*/
|
||||
protected abstract void initialiseHandler(BeanFactory factory);
|
||||
|
||||
|
||||
/**
|
||||
* Gets the workflow instance id of the currently executing workflow
|
||||
*
|
||||
* @param context jBPM execution context
|
||||
* @return workflow instance id
|
||||
*/
|
||||
protected String getWorkflowInstanceId(ExecutionContext context)
|
||||
{
|
||||
String id = new Long(context.getProcessInstance().getId()).toString();
|
||||
return BPMEngineRegistry.createGlobalId("jbpm", id);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user