public class ProcessImpl extends Object implements Process
Constructor and Description |
---|
ProcessImpl() |
Modifier and Type | Method and Description |
---|---|
Map<String,Serializable> |
getData() |
String |
getDefinitionIdentifier()
Returns the unique identifier of the process definition associated to the
process.
|
String |
getDescription()
Returns the description of the process.
|
GregorianCalendar |
getDueAt() |
GregorianCalendar |
getEndedAt()
Returns the timestamp in the session’s locale when the process was
completed.
|
String |
getIdentifier()
Returns the unique identifier of the Process.
|
String |
getInitiatorIdentifier()
Returns the username of the person who start the process.
|
String |
getKey()
Refers to a logical process definition.
|
String |
getName()
Returns the name of the process.
|
Integer |
getPriority()
Returns the priority of the process.
|
GregorianCalendar |
getStartedAt()
Returns the timestamp in the session’s locale when the process was
started.
|
Property |
getVariable(String name)
Returns the requested variable.
|
Map<String,Property> |
getVariables()
Returns a Map of all available variables for the specific process object.
|
<T> T |
getVariableValue(String name)
Returns the value of the variable with the given name.
|
boolean |
hasAllVariables()
Indicates whether the process has all it’s variables populated.
|
boolean |
hasCompleted()
Returns true if the task has completed.
|
static Process |
parseJson(Map<String,Object> json)
Parse Json Response from Alfresco REST API to create a process Definition
Object.
|
static Process |
parsePublicAPIJson(Map<String,Object> json) |
static Process |
refreshProcess(Process process,
Map<String,Property> properties) |
public static Process parseJson(Map<String,Object> json)
json
- : json response that contains data from the repositorypublic static Process refreshProcess(Process process, Map<String,Property> properties)
public String getIdentifier()
getIdentifier
in interface Process
public String getDefinitionIdentifier()
getDefinitionIdentifier
in interface Process
public GregorianCalendar getStartedAt()
getStartedAt
in interface Process
public Map<String,Serializable> getData()
public GregorianCalendar getEndedAt()
Process
getEndedAt
in interface Process
public String getKey()
Process
public GregorianCalendar getDueAt()
public Integer getPriority()
Process
getPriority
in interface Process
PRIORITY_MEDIUM
public String getInitiatorIdentifier()
Process
getInitiatorIdentifier
in interface Process
public String getName()
Process
public String getDescription()
Process
getDescription
in interface Process
public boolean hasAllVariables()
Process
hasAllVariables
in interface Process
public Property getVariable(String name)
Process
getVariable
in interface Process
name
- : unique identifier of your variable.public Map<String,Property> getVariables()
Process
getVariables
in interface Process
public <T> T getVariableValue(String name)
Process
getVariableValue
in interface Process
name
- : unique identifier label of the variablepublic boolean hasCompleted()
Process
hasCompleted
in interface Process
Copyright © 2012-2018 Alfresco Software. All Rights Reserved.