Agentflow
V3.1

pe.pase
Class TaskInfo

java.lang.Object
  extended by pe.pase.TaskInfo
All Implemented Interfaces:
java.io.Serializable

public class TaskInfo
extends java.lang.Object
implements java.io.Serializable

The class holds the information of the real member who executes the task, the default member who executes the task, and the instance of Task objbect.

Version:
1.1.5,
Author:
yschen
See Also:
Task, Serialized Form

Constructor Summary
TaskInfo(Task task, java.lang.String realExecutor, java.lang.String realExcutorID, java.lang.String assignName, java.lang.String assignID)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 long getArriTime()
          Get the arrival time
 java.lang.String getArtiID()
          Get the artifact id
 java.lang.String getArtiKW()
          Get the artifact keyword
 java.lang.String getArtiName()
          Get the artifact name
 java.lang.String getDefaultExecutorID()
          Get the default executor member id
 java.lang.String getDefaultExecutorName()
          Get the default executor name
 long getDuraTime()
          Get the duration time
 boolean getHasCreateProcess(boolean checkCProID)
          Get the task had execute the createProcess API.
 java.lang.String getRealExecutorID()
          Get the real executor member id
 java.lang.String getRealExecutorName()
          Get real executor name
 Task getTask()
          Get task
 java.lang.String getTaskID()
          Get the task id
 java.lang.String getTaskName()
          Get the task name
 java.lang.String getTaskState()
          Get task state
 java.lang.String getTaskType()
           
 boolean isExpand()
           
 void setExpand(boolean flag)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskInfo

public TaskInfo(Task task,
                java.lang.String realExecutor,
                java.lang.String realExcutorID,
                java.lang.String assignName,
                java.lang.String assignID)
Constructor. Construct a instance of TaskInfo with the specified parameters.

Parameters:
task - the given task
realExecutor - the given real executor name
realExcutorID - the given real executor member id
assignName - the given default executor name
assignID - the given default executor member id
Since:
version 1.0.0
See Also:
Task
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getArriTime

public long getArriTime()
Get the arrival time

Returns:
the time
Since:
version 1.0.0

getArtiID

public java.lang.String getArtiID()
Get the artifact id

Returns:
the artifact id
Since:
version 1.0.0

getArtiKW

public java.lang.String getArtiKW()
Get the artifact keyword

Returns:
the artifact keyword
Since:
version 1.0.0

getArtiName

public java.lang.String getArtiName()
Get the artifact name

Returns:
the artifact name
Since:
version 1.0.0

getDefaultExecutorID

public java.lang.String getDefaultExecutorID()
Get the default executor member id

Returns:
the default executor member id
Since:
version 1.0.0

getDefaultExecutorName

public java.lang.String getDefaultExecutorName()
Get the default executor name

Returns:
the default executor name
Since:
version 1.0.0

getDuraTime

public long getDuraTime()
Get the duration time

Returns:
the duration time
Since:
version 1.0.0

getHasCreateProcess

public boolean getHasCreateProcess(boolean checkCProID)
Get the task had execute the createProcess API.

Returns:
the task state (TASK_STATE_PREPARE, TASK_STATE_READY, TASK_STATE_QUEUE, TASK_STATE_RUNNING, TASK_STATE_COMPLETE, TASK_STATE_SUSPENDED, TASK_STATE_DEAD, TASK_STATE_SERVER_WAITING, TASK_STATE_CLIENT_WAITING, TASK_STATE_LOCK)
Since:
version 1.0.0
See Also:
Task

getRealExecutorID

public java.lang.String getRealExecutorID()
Get the real executor member id

Returns:
the real execitor member id
Since:
version 1.0.0

getRealExecutorName

public java.lang.String getRealExecutorName()
Get real executor name

Returns:
the real executor name
Since:
version 1.0.0

getTask

public Task getTask()
Get task

Returns:
the task
Since:
version 1.0.0
See Also:
Task

getTaskID

public java.lang.String getTaskID()
Get the task id

Returns:
the task id
Since:
version 1.0.0

getTaskName

public java.lang.String getTaskName()
Get the task name

Returns:
task name
Since:
version 1.0.0

getTaskState

public java.lang.String getTaskState()
Get task state

Returns:
the task state (TASK_STATE_PREPARE, TASK_STATE_READY, TASK_STATE_QUEUE, TASK_STATE_RUNNING, TASK_STATE_COMPLETE, TASK_STATE_SUSPENDED, TASK_STATE_DEAD, TASK_STATE_SERVER_WAITING, TASK_STATE_CLIENT_WAITING, TASK_STATE_LOCK)
Since:
version 1.0.0
See Also:
Task

getTaskType

public java.lang.String getTaskType()

isExpand

public boolean isExpand()

setExpand

public void setExpand(boolean flag)

Agentflow
V3.1

Submit a bug or feature
Copyright 1999-2010 Flowring , Inc. 12F., No.120, Sec2, Gongdao 5th Rd.,
Hsinchu City 300, Taiwan (R.O.C.) All Rights Reserved.