info.magnolia.module.workflow.commands
Class FlowCommand

java.lang.Object
  extended by info.magnolia.commands.MgnlCommand
      extended by info.magnolia.module.workflow.commands.FlowCommand
All Implemented Interfaces:
org.apache.commons.chain.Command
Direct Known Subclasses:
PathMappedFlowCommand

public class FlowCommand
extends MgnlCommand

Base command class for starting workflows.


Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
FlowCommand()
           
 
Method Summary
 boolean execute(Context ctx)
           
 String getDialogName()
           
 String getWorkflowName()
           
 void prepareLaunchItem(Context context, openwfe.org.engine.workitem.LaunchItem launchItem)
          The default implementation puts all the contexts attributes which are in the request scope into the work item.
 void release()
          If a clone is passivated we call this method.
 void setDialogName(String dialogName)
           
 void setWorkflowName(String flowName)
           
 
Methods inherited from class info.magnolia.commands.MgnlCommand
execute, isClone, isEnabled, setClone, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowCommand

public FlowCommand()
Method Detail

execute

public boolean execute(Context ctx)
                throws FlowDefinitionException
Specified by:
execute in class MgnlCommand
Throws:
FlowDefinitionException

prepareLaunchItem

public void prepareLaunchItem(Context context,
                              openwfe.org.engine.workitem.LaunchItem launchItem)
The default implementation puts all the contexts attributes which are in the request scope into the work item.

Parameters:
context -
launchItem -

getWorkflowName

public String getWorkflowName()

setWorkflowName

public void setWorkflowName(String flowName)

getDialogName

public String getDialogName()

setDialogName

public void setDialogName(String dialogName)

release

public void release()
Description copied from class: MgnlCommand
If a clone is passivated we call this method. Please clean up private properties.

Overrides:
release in class MgnlCommand


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