info.magnolia.module.workflow.flows
Interface FlowDefinitionManager

All Known Implementing Classes:
DefaultFlowDefinitionManager

public interface FlowDefinitionManager

Manages flow definitions.Configures the item to use a specific flow.

Version:
$Id$
Author:
philipp

Method Summary
 void configure(openwfe.org.engine.workitem.LaunchItem launchItem, String workflowName)
          Configure the launchItem, so that it will use the workflow.
 List getDefinitionNames()
          List all available workflow names.
 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.
 

Method Detail

configure

void configure(openwfe.org.engine.workitem.LaunchItem launchItem,
               String workflowName)
               throws FlowDefinitionException
Configure the launchItem, so that it will use the workflow.

Throws:
FlowDefinitionException

saveDefinition

void saveDefinition(String definition)
                    throws FlowDefinitionException
The flow name gets extracted out of the workflow definition.

Parameters:
definition - the workflow definition xml
Throws:
FlowDefinitionException

readDefinition

String readDefinition(String workflowName)
                      throws FlowDefinitionException
Read the workflow definition stored with this name.

Throws:
FlowDefinitionException

getDefinitionNames

List getDefinitionNames()
                        throws FlowDefinitionException
List all available workflow names.

Throws:
FlowDefinitionException


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.