|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.workflow.flows.DefaultFlowDefinitionManager
public class DefaultFlowDefinitionManager
Read and store flows in the repositories.
Constructor Summary | |
---|---|
DefaultFlowDefinitionManager()
|
Method Summary | |
---|---|
void |
configure(openwfe.org.engine.workitem.LaunchItem launchItem,
java.lang.String workflowName)
Configure the launchItem, so that it will use the workflow. |
protected java.lang.String |
extractWorkflowName(java.lang.String definition)
|
java.util.List |
getDefinitionNames()
List all available workflow names. |
Content |
getDefinitionNode(java.lang.String name)
find one flow node by flow name. |
java.lang.String |
getFlowDefinitionURLPattern()
|
java.lang.String |
readDefinition(java.lang.String workflowName)
Read the workflow definition stored with this name. |
void |
saveDefinition(java.lang.String definition)
The flow name gets extracted out of the workflow definition. |
protected void |
saveDefinition(java.lang.String workflowName,
java.lang.String definition)
|
void |
setFlowDefinitionURLPattern(java.lang.String flowDefinitionURLPattern)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFlowDefinitionManager()
Method Detail |
---|
public void configure(openwfe.org.engine.workitem.LaunchItem launchItem, java.lang.String workflowName) throws FlowDefinitionException
FlowDefinitionManager
configure
in interface FlowDefinitionManager
FlowDefinitionException
public java.lang.String readDefinition(java.lang.String workflowName) throws FlowDefinitionException
FlowDefinitionManager
readDefinition
in interface FlowDefinitionManager
FlowDefinitionException
public Content getDefinitionNode(java.lang.String name) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void saveDefinition(java.lang.String definition) throws FlowDefinitionException
FlowDefinitionManager
saveDefinition
in interface FlowDefinitionManager
definition
- the workflow definition xml
FlowDefinitionException
protected void saveDefinition(java.lang.String workflowName, java.lang.String definition) throws FlowDefinitionException
FlowDefinitionException
protected java.lang.String extractWorkflowName(java.lang.String definition) throws FlowDefinitionException
FlowDefinitionException
public java.util.List getDefinitionNames()
FlowDefinitionManager
getDefinitionNames
in interface FlowDefinitionManager
public java.lang.String getFlowDefinitionURLPattern()
public void setFlowDefinitionURLPattern(java.lang.String flowDefinitionURLPattern)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |