com.sap.mdm.workflow
Class AbstractWorkflowTask

java.lang.Object
  extended bycom.sap.mdm.workflow.AbstractWorkflowTask
All Implemented Interfaces:
WorkflowTask
Direct Known Subclasses:
ActiveWorkflowTask, InactiveWorkflowTask

public abstract class AbstractWorkflowTask
extends Object
implements WorkflowTask

Abstract implementation of common methods of WorkflowTask interface

See Also:
ActiveWorkflowTask, InactiveWorkflowTask

Nested Class Summary
 
Nested classes inherited from class com.sap.mdm.workflow.WorkflowTask
WorkflowTask.Priority, WorkflowTask.ShapeType, WorkflowTask.Status, WorkflowTask.Type
 
Constructor Summary
AbstractWorkflowTask(WorkflowJob job, int status, String[] userNames)
          Constructor
 
Method Summary
 WorkflowJob getJob()
          Returns the workflow job the current task belongs to.
 int getStatus()
          Returns the workflow task status.
 String getStatusName()
          Returns the status name correspondent to the default Locale
 String getStatusName(Locale locale)
          Returns the language specific status name
 String[] getUserNames()
          Returns names of users the current task is assigned to.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sap.mdm.workflow.WorkflowTask
getArriveTime, getEndTime, getStartTime, getStepDescription, getStepId, getStepName, getStepShapeType
 

Constructor Detail

AbstractWorkflowTask

public AbstractWorkflowTask(WorkflowJob job,
                            int status,
                            String[] userNames)
Constructor

Parameters:
job - workflow job
status - task status
userNames - user names
Method Detail

getJob

public WorkflowJob getJob()
Description copied from interface: WorkflowTask
Returns the workflow job the current task belongs to.

Specified by:
getJob in interface WorkflowTask
Returns:
the workflow job

getStatus

public int getStatus()
Description copied from interface: WorkflowTask
Returns the workflow task status.

Specified by:
getStatus in interface WorkflowTask
Returns:
the status.

getUserNames

public String[] getUserNames()
Description copied from interface: WorkflowTask
Returns names of users the current task is assigned to.

Specified by:
getUserNames in interface WorkflowTask
Returns:
array of user names.

getStatusName

public String getStatusName()
Description copied from interface: WorkflowTask
Returns the status name correspondent to the default Locale

Specified by:
getStatusName in interface WorkflowTask
Returns:
default language status name

getStatusName

public String getStatusName(Locale locale)
Description copied from interface: WorkflowTask
Returns the language specific status name

Specified by:
getStatusName in interface WorkflowTask
Parameters:
locale - the Locale defining the language for status name
Returns:
the language specific status name


Copyright 2004-2007 by SAP AG. All Rights Reserved.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.