|
||||||||||
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,
String workflowName)
Configure the launchItem, so that it will use the workflow. |
protected String |
extractWorkflowName(String definition)
|
List |
getDefinitionNames()
List all available workflow names. |
Content |
getDefinitionNode(String name)
find one flow node by flow name. |
String |
getFlowDefinitionURLPattern()
|
String |
readDefinition(String workflowName)
Read the workflow definition stored with this name. |
void |
saveDefinition(String definition)
The flow name gets extracted out of the workflow definition. |
protected void |
saveDefinition(String workflowName,
String definition)
|
void |
setFlowDefinitionURLPattern(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, String workflowName) throws FlowDefinitionException
FlowDefinitionManager
configure
in interface FlowDefinitionManager
FlowDefinitionException
public String readDefinition(String workflowName) throws FlowDefinitionException
FlowDefinitionManager
readDefinition
in interface FlowDefinitionManager
FlowDefinitionException
public Content getDefinitionNode(String name) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void saveDefinition(String definition) throws FlowDefinitionException
FlowDefinitionManager
saveDefinition
in interface FlowDefinitionManager
definition
- the workflow definition xml
FlowDefinitionException
protected void saveDefinition(String workflowName, String definition) throws FlowDefinitionException
FlowDefinitionException
protected String extractWorkflowName(String definition) throws FlowDefinitionException
FlowDefinitionException
public List getDefinitionNames()
FlowDefinitionManager
getDefinitionNames
in interface FlowDefinitionManager
public String getFlowDefinitionURLPattern()
public void setFlowDefinitionURLPattern(String flowDefinitionURLPattern)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |