com.semarchy.mdm.runtime.activity
Interface IActivityTask


public interface IActivityTask

IActivityTask and IActivityTaskInfo should have some common parent interface somehow. Be careful with UI i18n if going there.

Author:
sarod

Method Summary
 boolean equals(Object pObj)
          Two IActivityTask are considered equals if they have the same getTaskUUID()
 IActivity getActivity()
           
 Date getActivityCreationDate()
           
 String getActivityInitiator()
           
 String getActivityLabel()
           
 ActivityPriority getActivityPriority()
           
 String getActivityStartComments()
           
 ActivityStatus getActivityStatus()
           
 Date getActivitySubmitDate()
           
 ActivityType getActivityType()
           
 UUID getActivityUUID()
           
 String getApplicationName()
           
 IHumanTask getHumanTask()
           
 IHumanWorkflow getHumanWorkflow()
           
 long getLoadID()
           
 String getTaskAssigneeRole()
           
 Date getTaskClaimDate()
           
 String getTaskCompletionComments()
           
 Date getTaskCompletionDate()
           
 Date getTaskCreationDate()
           
 String getTaskCreationUser()
           
 String getTaskName()
          The Task Name
 String getTaskPerformer()
           
 long getTaskRevision()
           
 int getTaskSequence()
           
 UUID getTaskUUID()
           
 IWorkflowTransition getTransition()
          The transition that were used if task completed.
 IHumanTask getTransitionHumanTask()
           
 String getTransitionName()
          The name of the transition that were followed
 String getTransitionTaskName()
          The task to which the transition was made
 String getWorkflowName()
           
 int hashCode()
           
 boolean isClaimable(ILogicalModelSecurityProvider secuProvider)
          Return true if current task can be claimed by current user given the security consideration and the status of the IActivityTask.
 boolean isCompletable(ILogicalModelSecurityProvider secuProvider)
          Return true if current task can be completed by current user given the security consideration and the status of the IActivityTask.
 boolean isTaskClaimed()
           
 boolean isTaskComplete()
           
 boolean isTaskDataModifiable(ILogicalModelSecurityProvider secuProvider)
          Return true if data associated with current task can be modified by current user given the security consideration and the status of the IActivityTask.
 boolean isTaskRoleNotified()
           
 boolean isUnclaimable(ILogicalModelSecurityProvider secuProvider)
          Return true if current task can be unclaimed by current user given the security consideration and the status of the IActivityTask.
 

Method Detail

getTaskRevision

long getTaskRevision()
Returns:

getTaskUUID

UUID getTaskUUID()
Returns:

getTaskName

String getTaskName()
The Task Name

Returns:

getTaskCreationDate

Date getTaskCreationDate()

getTaskCreationUser

String getTaskCreationUser()

getTaskAssigneeRole

String getTaskAssigneeRole()
Returns:

isTaskRoleNotified

boolean isTaskRoleNotified()

getTaskClaimDate

Date getTaskClaimDate()

getTaskPerformer

String getTaskPerformer()

getTaskCompletionDate

Date getTaskCompletionDate()

getTaskCompletionComments

String getTaskCompletionComments()

getTransitionName

String getTransitionName()
The name of the transition that were followed

Returns:
Throws:
NoSuchTransitionException

getTransition

IWorkflowTransition getTransition()
                                  throws NoSuchTransitionException,
                                         NoSuchWorkflowException
The transition that were used if task completed.

Returns:
Throws:
NoSuchTransitionException
NoSuchWorkflowException

getHumanTask

IHumanTask getHumanTask()
                        throws NoSuchTaskException,
                               NoSuchWorkflowException
Throws:
NoSuchTaskException
NoSuchWorkflowException

getTransitionTaskName

String getTransitionTaskName()
The task to which the transition was made

Returns:

getTransitionHumanTask

IHumanTask getTransitionHumanTask()
                                  throws NoSuchTaskException,
                                         NoSuchWorkflowException
Throws:
NoSuchTaskException
NoSuchWorkflowException

getTaskSequence

int getTaskSequence()

isTaskComplete

boolean isTaskComplete()

isTaskClaimed

boolean isTaskClaimed()

getHumanWorkflow

IHumanWorkflow getHumanWorkflow()
                                throws NoSuchWorkflowException
Throws:
NoSuchWorkflowException

getActivity

IActivity getActivity()

getActivityUUID

UUID getActivityUUID()

getLoadID

long getLoadID()

getWorkflowName

String getWorkflowName()

getApplicationName

String getApplicationName()

getActivityType

ActivityType getActivityType()

getActivityLabel

String getActivityLabel()

getActivityPriority

ActivityPriority getActivityPriority()

getActivityCreationDate

Date getActivityCreationDate()

getActivityInitiator

String getActivityInitiator()

getActivityStartComments

String getActivityStartComments()

getActivityStatus

ActivityStatus getActivityStatus()

getActivitySubmitDate

Date getActivitySubmitDate()

isClaimable

boolean isClaimable(ILogicalModelSecurityProvider secuProvider)
Return true if current task can be claimed by current user given the security consideration and the status of the IActivityTask.

Parameters:
secuProvider -
Returns:

isUnclaimable

boolean isUnclaimable(ILogicalModelSecurityProvider secuProvider)
Return true if current task can be unclaimed by current user given the security consideration and the status of the IActivityTask.

Parameters:
secuProvider -
Returns:

isCompletable

boolean isCompletable(ILogicalModelSecurityProvider secuProvider)
Return true if current task can be completed by current user given the security consideration and the status of the IActivityTask.

Parameters:
secuProvider -
Returns:

isTaskDataModifiable

boolean isTaskDataModifiable(ILogicalModelSecurityProvider secuProvider)
Return true if data associated with current task can be modified by current user given the security consideration and the status of the IActivityTask. This only checks the generic workflow authorization. Authorization related to the data modification itself may be needed.

Parameters:
secuProvider -
Returns:

equals

boolean equals(Object pObj)
Two IActivityTask are considered equals if they have the same getTaskUUID()

Overrides:
equals in class Object
Parameters:
pObj -
Returns:

hashCode

int hashCode()
Overrides:
hashCode in class Object


Copyright © 2015. All Rights Reserved.