com.day.cq.workflow.impl.advance
Class EndNodeHandler

java.lang.Object
  extended by com.day.cq.workflow.impl.advance.AdvanceHandlerBase
      extended by com.day.cq.workflow.impl.advance.EndNodeHandler
All Implemented Interfaces:
AdvanceHandler

public class EndNodeHandler
extends AdvanceHandlerBase


Field Summary
static String PROCESS_FROM
           
static String TYPE
           
 
Fields inherited from class com.day.cq.workflow.impl.advance.AdvanceHandlerBase
admin, log, repository, workflowService
 
Constructor Summary
EndNodeHandler()
          Default constructor for running inside OSGI.
EndNodeHandler(org.osgi.service.event.EventAdmin eventAdmin, Dictionary<String,Object> config, Session admin)
          Initializes all necessary dependencies to run the handler in non-OSGI environments.
 
Method Summary
protected  void activate(org.osgi.service.component.ComponentContext context)
           
 boolean canHandleFromNodes()
          Indicates if the handler is able to process from nodes, too.
 void doTransition(WorkItem item, WorkflowTransition destination, WorkflowSession session, boolean checkFrom)
           
 String getType()
          Returns the type of WorkflowNodes that can be advanced to by the handler implementation.
 
Methods inherited from class com.day.cq.workflow.impl.advance.AdvanceHandlerBase
getHandlerManager, getWorkflowManager, getWorkflowModelManager, getWorkItemManager, setHandlerManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values

PROCESS_FROM

public static final String PROCESS_FROM
See Also:
Constant Field Values
Constructor Detail

EndNodeHandler

public EndNodeHandler()
Default constructor for running inside OSGI. In case this constructor is used the instance must be initialized through SCR integration.


EndNodeHandler

public EndNodeHandler(org.osgi.service.event.EventAdmin eventAdmin,
                      Dictionary<String,Object> config,
                      Session admin)
Initializes all necessary dependencies to run the handler in non-OSGI environments.

Method Detail

doTransition

public void doTransition(WorkItem item,
                         WorkflowTransition destination,
                         WorkflowSession session,
                         boolean checkFrom)
                  throws WorkflowException
Throws:
WorkflowException
See Also:
AdvanceHandler.doTransition(com.day.cq.workflow.exec.WorkItem, com.day.cq.workflow.model.WorkflowTransition, com.day.cq.workflow.WorkflowSession, boolean)

getType

public String getType()
Description copied from interface: AdvanceHandler
Returns the type of WorkflowNodes that can be advanced to by the handler implementation.

Returns:
The type of WorkflowNodes that can be handled.
See Also:
AdvanceHandler.getType()

canHandleFromNodes

public boolean canHandleFromNodes()
Description copied from interface: AdvanceHandler
Indicates if the handler is able to process from nodes, too.

Returns:
True if from nodes can be processed, otherwise false.
See Also:
AdvanceHandler.canHandleFromNodes()

activate

protected void activate(org.osgi.service.component.ComponentContext context)
                 throws Exception
Overrides:
activate in class AdvanceHandlerBase
Throws:
Exception


Copyright © 2008 Day Management AG. All Rights Reserved.