Skip navigation links


com.fatwire.services.beans.entity
Class WorkflowBean

java.lang.Object
  extended by com.fatwire.services.beans.BaseBean
      extended by com.fatwire.services.beans.entity.WorkflowBean

All Implemented Interfaces:
java.io.Serializable

public class WorkflowBean
extends BaseBean

The WorkflowBean is the value object used by the workflow related services. A workflow has a process associated with it which consists of multiple steps. Each step takes an asset from a source state to a target state based on an action from a user (with a specified role). Once the step is complete, the user provides the next action required as a comment while pushing the assignment down the workflow pipeline. the WorkflowBean represents the following workflow properties associated with an asset:

See Also:
Serialized Form

Nested Class Summary
static class WorkflowBean.Action
           Enumerated values for Workflow actions.

 

Constructor Summary
WorkflowBean()
           

 

Method Summary
 WorkflowBean.Action getAction()
          Returns the action associated with the current step of the workflow.
 long getProcessId()
          Returns the unique identifier for the process associated with this workflow.
 java.util.Map<RoleBean,java.util.List<UserBean>> getRoleUserMapping()
           Returns the role-user mapping for this workflow step.
 long getStepId()
          Returns the identifier for the current step in with this workflow.
 void setAction(WorkflowBean.Action action)
          Sets the action associated with the current step of the workflow.
 void setProcessId(long processId)
          Sets the unique identifier for the process associated with this workflow.
 void setStepId(long stepId)
          Sets the identifier for the current step in with this workflow.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

WorkflowBean

public WorkflowBean()

Method Detail

getProcessId

public long getProcessId()
Returns the unique identifier for the process associated with this workflow.
Returns:
the process id.

setProcessId

public void setProcessId(long processId)
Sets the unique identifier for the process associated with this workflow.
Parameters:
processId - the process id to set.

getStepId

public long getStepId()
Returns the identifier for the current step in with this workflow.
Returns:
the step id.

setStepId

public void setStepId(long stepId)
Sets the identifier for the current step in with this workflow.
Parameters:
stepId - the step id to set.

getAction

public WorkflowBean.Action getAction()
Returns the action associated with the current step of the workflow.
Returns:
the action.
See Also:
WorkflowBean.Action

setAction

public void setAction(WorkflowBean.Action action)
Sets the action associated with the current step of the workflow.
Parameters:
action - the action to set.
See Also:
WorkflowBean.Action

getRoleUserMapping

public java.util.Map<RoleBean,java.util.List<UserBean>> getRoleUserMapping()

Returns the role-user mapping for this workflow step.

The map contains roles as the key and the list of all users in a given site who have the role assigned to them, as the value.
Returns:
the role-user mapping.

Skip navigation links


Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.