mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
125605 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125498 slanglois: MNT-16155 Update source headers - remove svn:eol-style property on Java and JSP source files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125783 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,51 +1,51 @@
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
/**
|
||||
* Client facing API for providing administration information about the
|
||||
* {@link WorkflowService}.
|
||||
*
|
||||
* @author Gavin Cornwell
|
||||
* @since 4.0
|
||||
*/
|
||||
public interface WorkflowAdminService
|
||||
{
|
||||
/**
|
||||
* Determines whether the engine with the given id is enabled.
|
||||
*
|
||||
* @param engineId The id of a workflow engine
|
||||
* @return true if the engine id is valid and is enabled
|
||||
*/
|
||||
boolean isEngineEnabled(String engineId);
|
||||
|
||||
/**
|
||||
* Enables/disables the engine with the given id.
|
||||
*
|
||||
* @param engineId The id of a workflow engine
|
||||
* @param isEnabled true to enable the engine, false to disable
|
||||
*/
|
||||
public void setEngineEnabled(String engineId, boolean isEnabled);
|
||||
|
||||
/**
|
||||
* Determines whether the workflow definitions are visible
|
||||
* for the engine with the given id.
|
||||
*
|
||||
* NOTE: Workflow definitions can always be retrieved directly
|
||||
* i.e. via name or id
|
||||
*
|
||||
* @param engineId The id of a workflow engine
|
||||
* @return true if the definitions are visible
|
||||
*/
|
||||
boolean isEngineVisible(String engineId);
|
||||
|
||||
/**
|
||||
* Sets the visiblity of workflow definitions
|
||||
* for the engine with the given id.
|
||||
*
|
||||
* NOTE: Workflow definitions can always be retrieved directly
|
||||
* i.e. via name or id
|
||||
*
|
||||
* @param engineId The id of a workflow engine
|
||||
* @param isVisible true if the definitions are visible
|
||||
*/
|
||||
public void setEngineVisibility(String engineId, boolean isVisible);
|
||||
}
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
/**
|
||||
* Client facing API for providing administration information about the
|
||||
* {@link WorkflowService}.
|
||||
*
|
||||
* @author Gavin Cornwell
|
||||
* @since 4.0
|
||||
*/
|
||||
public interface WorkflowAdminService
|
||||
{
|
||||
/**
|
||||
* Determines whether the engine with the given id is enabled.
|
||||
*
|
||||
* @param engineId The id of a workflow engine
|
||||
* @return true if the engine id is valid and is enabled
|
||||
*/
|
||||
boolean isEngineEnabled(String engineId);
|
||||
|
||||
/**
|
||||
* Enables/disables the engine with the given id.
|
||||
*
|
||||
* @param engineId The id of a workflow engine
|
||||
* @param isEnabled true to enable the engine, false to disable
|
||||
*/
|
||||
public void setEngineEnabled(String engineId, boolean isEnabled);
|
||||
|
||||
/**
|
||||
* Determines whether the workflow definitions are visible
|
||||
* for the engine with the given id.
|
||||
*
|
||||
* NOTE: Workflow definitions can always be retrieved directly
|
||||
* i.e. via name or id
|
||||
*
|
||||
* @param engineId The id of a workflow engine
|
||||
* @return true if the definitions are visible
|
||||
*/
|
||||
boolean isEngineVisible(String engineId);
|
||||
|
||||
/**
|
||||
* Sets the visiblity of workflow definitions
|
||||
* for the engine with the given id.
|
||||
*
|
||||
* NOTE: Workflow definitions can always be retrieved directly
|
||||
* i.e. via name or id
|
||||
*
|
||||
* @param engineId The id of a workflow engine
|
||||
* @param isVisible true if the definitions are visible
|
||||
*/
|
||||
public void setEngineVisibility(String engineId, boolean isVisible);
|
||||
}
|
||||
|
@@ -1,95 +1,95 @@
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
|
||||
|
||||
/**
|
||||
* Workflow Definition Data Object
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class WorkflowDefinition implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = -4320345925926816927L;
|
||||
|
||||
@Deprecated
|
||||
public final String id;
|
||||
|
||||
@Deprecated
|
||||
public final String name;
|
||||
|
||||
@Deprecated
|
||||
public final String version;
|
||||
|
||||
@Deprecated
|
||||
public final String title;
|
||||
|
||||
@Deprecated
|
||||
public final String description;
|
||||
|
||||
transient private final WorkflowTaskDefinition startTaskDefinition;
|
||||
|
||||
public WorkflowDefinition(final String id,
|
||||
final String name,
|
||||
final String version,
|
||||
final String title,
|
||||
final String description,
|
||||
final WorkflowTaskDefinition startTaskDefinition)
|
||||
{
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.version = version;
|
||||
this.title = title;
|
||||
this.description = description;
|
||||
this.startTaskDefinition = startTaskDefinition;
|
||||
}
|
||||
|
||||
/** Workflow Definition unique id */
|
||||
public String getId()
|
||||
{
|
||||
return this.id;
|
||||
}
|
||||
|
||||
|
||||
/** Workflow Definition name */
|
||||
public String getName()
|
||||
{
|
||||
return this.name;
|
||||
}
|
||||
|
||||
/** Workflow Definition version */
|
||||
public String getVersion()
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
|
||||
/** Workflow Definition Title (Localised) */
|
||||
public String getTitle()
|
||||
{
|
||||
return this.title;
|
||||
}
|
||||
|
||||
/** Workflow Definition Description (Localised) */
|
||||
public String getDescription()
|
||||
{
|
||||
return this.description;
|
||||
}
|
||||
|
||||
/** Task Definition for Workflow Start Task (Optional) */
|
||||
public WorkflowTaskDefinition getStartTaskDefinition()
|
||||
{
|
||||
return this.startTaskDefinition;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "WorkflowDefinition[id=" + id + ",name=" + name + ",version=" + version + ",title=" + title + ",startTask=" + ((getStartTaskDefinition() == null) ? "undefined" : getStartTaskDefinition().toString()) + "]";
|
||||
}
|
||||
}
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
|
||||
|
||||
/**
|
||||
* Workflow Definition Data Object
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class WorkflowDefinition implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = -4320345925926816927L;
|
||||
|
||||
@Deprecated
|
||||
public final String id;
|
||||
|
||||
@Deprecated
|
||||
public final String name;
|
||||
|
||||
@Deprecated
|
||||
public final String version;
|
||||
|
||||
@Deprecated
|
||||
public final String title;
|
||||
|
||||
@Deprecated
|
||||
public final String description;
|
||||
|
||||
transient private final WorkflowTaskDefinition startTaskDefinition;
|
||||
|
||||
public WorkflowDefinition(final String id,
|
||||
final String name,
|
||||
final String version,
|
||||
final String title,
|
||||
final String description,
|
||||
final WorkflowTaskDefinition startTaskDefinition)
|
||||
{
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.version = version;
|
||||
this.title = title;
|
||||
this.description = description;
|
||||
this.startTaskDefinition = startTaskDefinition;
|
||||
}
|
||||
|
||||
/** Workflow Definition unique id */
|
||||
public String getId()
|
||||
{
|
||||
return this.id;
|
||||
}
|
||||
|
||||
|
||||
/** Workflow Definition name */
|
||||
public String getName()
|
||||
{
|
||||
return this.name;
|
||||
}
|
||||
|
||||
/** Workflow Definition version */
|
||||
public String getVersion()
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
|
||||
/** Workflow Definition Title (Localised) */
|
||||
public String getTitle()
|
||||
{
|
||||
return this.title;
|
||||
}
|
||||
|
||||
/** Workflow Definition Description (Localised) */
|
||||
public String getDescription()
|
||||
{
|
||||
return this.description;
|
||||
}
|
||||
|
||||
/** Task Definition for Workflow Start Task (Optional) */
|
||||
public WorkflowTaskDefinition getStartTaskDefinition()
|
||||
{
|
||||
return this.startTaskDefinition;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "WorkflowDefinition[id=" + id + ",name=" + name + ",version=" + version + ",title=" + title + ",startTask=" + ((getStartTaskDefinition() == null) ? "undefined" : getStartTaskDefinition().toString()) + "]";
|
||||
}
|
||||
}
|
||||
|
@@ -1,56 +1,56 @@
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
|
||||
/**
|
||||
* Workflow Definition Deployment
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class WorkflowDeployment
|
||||
{
|
||||
/** Workflow Definition */
|
||||
@Deprecated
|
||||
public WorkflowDefinition definition;
|
||||
|
||||
/** Workflow Status */
|
||||
@Deprecated
|
||||
public String[] problems;
|
||||
|
||||
public WorkflowDeployment()
|
||||
{
|
||||
// Default Constructor.
|
||||
}
|
||||
|
||||
public WorkflowDeployment(WorkflowDefinition definition, String... problems)
|
||||
{
|
||||
this.definition = definition;
|
||||
this.problems = problems;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the definition
|
||||
*/
|
||||
public WorkflowDefinition getDefinition()
|
||||
{
|
||||
return definition;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the problems
|
||||
*/
|
||||
public String[] getProblems()
|
||||
{
|
||||
return problems;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "WorkflowDeployment[def=" + definition + ",problems=" + ((problems == null) ? 0 : problems.length) + "]";
|
||||
}
|
||||
}
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
|
||||
/**
|
||||
* Workflow Definition Deployment
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class WorkflowDeployment
|
||||
{
|
||||
/** Workflow Definition */
|
||||
@Deprecated
|
||||
public WorkflowDefinition definition;
|
||||
|
||||
/** Workflow Status */
|
||||
@Deprecated
|
||||
public String[] problems;
|
||||
|
||||
public WorkflowDeployment()
|
||||
{
|
||||
// Default Constructor.
|
||||
}
|
||||
|
||||
public WorkflowDeployment(WorkflowDefinition definition, String... problems)
|
||||
{
|
||||
this.definition = definition;
|
||||
this.problems = problems;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the definition
|
||||
*/
|
||||
public WorkflowDefinition getDefinition()
|
||||
{
|
||||
return definition;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the problems
|
||||
*/
|
||||
public String[] getProblems()
|
||||
{
|
||||
return problems;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "WorkflowDeployment[def=" + definition + ",problems=" + ((problems == null) ? 0 : problems.length) + "]";
|
||||
}
|
||||
}
|
||||
|
@@ -1,33 +1,33 @@
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import org.alfresco.error.AlfrescoRuntimeException;
|
||||
|
||||
/**
|
||||
* Base Exception of Workflow Exceptions.
|
||||
*
|
||||
* @author David Caruana
|
||||
*/
|
||||
public class WorkflowException extends AlfrescoRuntimeException
|
||||
{
|
||||
private static final long serialVersionUID = -7338963365877285084L;
|
||||
|
||||
public WorkflowException(String msgId)
|
||||
{
|
||||
super(msgId);
|
||||
}
|
||||
|
||||
public WorkflowException(String msgId, Throwable cause)
|
||||
{
|
||||
super(msgId, cause);
|
||||
}
|
||||
|
||||
public WorkflowException(String msgId, Object ... args)
|
||||
{
|
||||
super(msgId, args);
|
||||
}
|
||||
|
||||
public WorkflowException(String msgId, Throwable cause, Object ... args)
|
||||
{
|
||||
super(msgId, args, cause);
|
||||
}
|
||||
}
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import org.alfresco.error.AlfrescoRuntimeException;
|
||||
|
||||
/**
|
||||
* Base Exception of Workflow Exceptions.
|
||||
*
|
||||
* @author David Caruana
|
||||
*/
|
||||
public class WorkflowException extends AlfrescoRuntimeException
|
||||
{
|
||||
private static final long serialVersionUID = -7338963365877285084L;
|
||||
|
||||
public WorkflowException(String msgId)
|
||||
{
|
||||
super(msgId);
|
||||
}
|
||||
|
||||
public WorkflowException(String msgId, Throwable cause)
|
||||
{
|
||||
super(msgId, cause);
|
||||
}
|
||||
|
||||
public WorkflowException(String msgId, Object ... args)
|
||||
{
|
||||
super(msgId, args);
|
||||
}
|
||||
|
||||
public WorkflowException(String msgId, Throwable cause, Object ... args)
|
||||
{
|
||||
super(msgId, args, cause);
|
||||
}
|
||||
}
|
||||
|
@@ -1,190 +1,190 @@
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
|
||||
|
||||
/**
|
||||
* Workflow Instance Data Object
|
||||
*
|
||||
* Represents an "in-flight" workflow.
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class WorkflowInstance implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 4221926809419223452L;
|
||||
|
||||
/** Workflow Instance unique id */
|
||||
@Deprecated
|
||||
public String id;
|
||||
|
||||
/** Workflow Instance description */
|
||||
@Deprecated
|
||||
public String description;
|
||||
|
||||
/** Is this Workflow instance still "in-flight" or has it completed? */
|
||||
@Deprecated
|
||||
public boolean active;
|
||||
|
||||
/** Initiator (cm:person) - null if System initiated */
|
||||
@Deprecated
|
||||
public NodeRef initiator;
|
||||
|
||||
/** Workflow priority */
|
||||
public Integer priority;
|
||||
|
||||
/** Workflow Start Date */
|
||||
@Deprecated
|
||||
public Date startDate;
|
||||
|
||||
/** Workflow Due Date */
|
||||
public Date dueDate;
|
||||
|
||||
/** Workflow End Date */
|
||||
@Deprecated
|
||||
public Date endDate;
|
||||
|
||||
/** Workflow Package */
|
||||
@Deprecated
|
||||
public NodeRef workflowPackage;
|
||||
|
||||
/** Workflow Context */
|
||||
@Deprecated
|
||||
public NodeRef context;
|
||||
|
||||
/** Workflow Definition */
|
||||
@Deprecated
|
||||
public WorkflowDefinition definition;
|
||||
|
||||
public WorkflowInstance(
|
||||
String id,
|
||||
WorkflowDefinition definition,
|
||||
String description,
|
||||
NodeRef initiator,
|
||||
NodeRef workflowPackage,
|
||||
NodeRef context,
|
||||
boolean active,
|
||||
Date startDate,
|
||||
Date endDate)
|
||||
{
|
||||
this.id = id;
|
||||
this.definition = definition;
|
||||
this.description = description;
|
||||
this.initiator = initiator;
|
||||
this.workflowPackage = workflowPackage;
|
||||
this.context = context;
|
||||
this.active = active;
|
||||
this.startDate = startDate;
|
||||
this.endDate = endDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the serialversionuid
|
||||
*/
|
||||
public static long getSerialversionuid()
|
||||
{
|
||||
return serialVersionUID;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the id
|
||||
*/
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the description
|
||||
*/
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the active
|
||||
*/
|
||||
public boolean isActive()
|
||||
{
|
||||
return active;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the initiator
|
||||
*/
|
||||
public NodeRef getInitiator()
|
||||
{
|
||||
return initiator;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the priority, null if there is no priority set
|
||||
*/
|
||||
public Integer getPriority()
|
||||
{
|
||||
return this.priority;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the startDate
|
||||
*/
|
||||
public Date getStartDate()
|
||||
{
|
||||
return startDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the dueDate
|
||||
*/
|
||||
public Date getDueDate()
|
||||
{
|
||||
return dueDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the endDate
|
||||
*/
|
||||
public Date getEndDate()
|
||||
{
|
||||
return endDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the workflowPackage
|
||||
*/
|
||||
public NodeRef getWorkflowPackage()
|
||||
{
|
||||
return workflowPackage;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the context
|
||||
*/
|
||||
public NodeRef getContext()
|
||||
{
|
||||
return context;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the definition
|
||||
*/
|
||||
public WorkflowDefinition getDefinition()
|
||||
{
|
||||
return definition;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "WorkflowInstance[id=" + id + ",active=" + active + ",def=" + definition.toString() + "]";
|
||||
}
|
||||
}
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
|
||||
|
||||
/**
|
||||
* Workflow Instance Data Object
|
||||
*
|
||||
* Represents an "in-flight" workflow.
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class WorkflowInstance implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 4221926809419223452L;
|
||||
|
||||
/** Workflow Instance unique id */
|
||||
@Deprecated
|
||||
public String id;
|
||||
|
||||
/** Workflow Instance description */
|
||||
@Deprecated
|
||||
public String description;
|
||||
|
||||
/** Is this Workflow instance still "in-flight" or has it completed? */
|
||||
@Deprecated
|
||||
public boolean active;
|
||||
|
||||
/** Initiator (cm:person) - null if System initiated */
|
||||
@Deprecated
|
||||
public NodeRef initiator;
|
||||
|
||||
/** Workflow priority */
|
||||
public Integer priority;
|
||||
|
||||
/** Workflow Start Date */
|
||||
@Deprecated
|
||||
public Date startDate;
|
||||
|
||||
/** Workflow Due Date */
|
||||
public Date dueDate;
|
||||
|
||||
/** Workflow End Date */
|
||||
@Deprecated
|
||||
public Date endDate;
|
||||
|
||||
/** Workflow Package */
|
||||
@Deprecated
|
||||
public NodeRef workflowPackage;
|
||||
|
||||
/** Workflow Context */
|
||||
@Deprecated
|
||||
public NodeRef context;
|
||||
|
||||
/** Workflow Definition */
|
||||
@Deprecated
|
||||
public WorkflowDefinition definition;
|
||||
|
||||
public WorkflowInstance(
|
||||
String id,
|
||||
WorkflowDefinition definition,
|
||||
String description,
|
||||
NodeRef initiator,
|
||||
NodeRef workflowPackage,
|
||||
NodeRef context,
|
||||
boolean active,
|
||||
Date startDate,
|
||||
Date endDate)
|
||||
{
|
||||
this.id = id;
|
||||
this.definition = definition;
|
||||
this.description = description;
|
||||
this.initiator = initiator;
|
||||
this.workflowPackage = workflowPackage;
|
||||
this.context = context;
|
||||
this.active = active;
|
||||
this.startDate = startDate;
|
||||
this.endDate = endDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the serialversionuid
|
||||
*/
|
||||
public static long getSerialversionuid()
|
||||
{
|
||||
return serialVersionUID;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the id
|
||||
*/
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the description
|
||||
*/
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the active
|
||||
*/
|
||||
public boolean isActive()
|
||||
{
|
||||
return active;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the initiator
|
||||
*/
|
||||
public NodeRef getInitiator()
|
||||
{
|
||||
return initiator;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the priority, null if there is no priority set
|
||||
*/
|
||||
public Integer getPriority()
|
||||
{
|
||||
return this.priority;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the startDate
|
||||
*/
|
||||
public Date getStartDate()
|
||||
{
|
||||
return startDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the dueDate
|
||||
*/
|
||||
public Date getDueDate()
|
||||
{
|
||||
return dueDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the endDate
|
||||
*/
|
||||
public Date getEndDate()
|
||||
{
|
||||
return endDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the workflowPackage
|
||||
*/
|
||||
public NodeRef getWorkflowPackage()
|
||||
{
|
||||
return workflowPackage;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the context
|
||||
*/
|
||||
public NodeRef getContext()
|
||||
{
|
||||
return context;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the definition
|
||||
*/
|
||||
public WorkflowDefinition getDefinition()
|
||||
{
|
||||
return definition;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "WorkflowInstance[id=" + id + ",active=" + active + ",def=" + definition.toString() + "]";
|
||||
}
|
||||
}
|
||||
|
@@ -1,114 +1,114 @@
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
|
||||
/**
|
||||
* Workflow Node Data Object
|
||||
*
|
||||
* Represents a Node within the Workflow Definition.
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class WorkflowNode
|
||||
{
|
||||
/** Workflow Node Name */
|
||||
@Deprecated
|
||||
public String name;
|
||||
|
||||
/** Workflow Node Title (Localised) */
|
||||
@Deprecated
|
||||
public String title;
|
||||
|
||||
/** Workflow Node Description (Localised) */
|
||||
@Deprecated
|
||||
public String description;
|
||||
|
||||
/** Type of the Workflow Node (typically this is BPM engine specific - informational only */
|
||||
@Deprecated
|
||||
public String type;
|
||||
|
||||
/** Does this Workflow Node represent human interaction? */
|
||||
@Deprecated
|
||||
public boolean isTaskNode;
|
||||
|
||||
/** The transitions leaving this node (or null, if none) */
|
||||
@Deprecated
|
||||
public WorkflowTransition[] transitions;
|
||||
|
||||
public WorkflowNode(String name,
|
||||
String title, String description,
|
||||
String type, boolean isTaskNode,
|
||||
WorkflowTransition... transitions)
|
||||
{
|
||||
this.name = name;
|
||||
this.title = title;
|
||||
this.description = description;
|
||||
this.type = type;
|
||||
this.isTaskNode = isTaskNode;
|
||||
this.transitions = transitions;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the name
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the title
|
||||
*/
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the description
|
||||
*/
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the type
|
||||
*/
|
||||
public String getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the isTaskNode
|
||||
*/
|
||||
public boolean isTaskNode()
|
||||
{
|
||||
return isTaskNode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the transitions
|
||||
*/
|
||||
public WorkflowTransition[] getTransitions()
|
||||
{
|
||||
return transitions;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
String transitionsArray = "{";
|
||||
for (int i = 0; i < transitions.length; i++)
|
||||
{
|
||||
transitionsArray += ((i == 0) ? "" : ",") + "'" + transitions[i] + "'";
|
||||
}
|
||||
transitionsArray += "}";
|
||||
return "WorkflowNode[title=" + title + ",type=" + type + ",transitions=" + transitionsArray + "]";
|
||||
}
|
||||
}
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
|
||||
/**
|
||||
* Workflow Node Data Object
|
||||
*
|
||||
* Represents a Node within the Workflow Definition.
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class WorkflowNode
|
||||
{
|
||||
/** Workflow Node Name */
|
||||
@Deprecated
|
||||
public String name;
|
||||
|
||||
/** Workflow Node Title (Localised) */
|
||||
@Deprecated
|
||||
public String title;
|
||||
|
||||
/** Workflow Node Description (Localised) */
|
||||
@Deprecated
|
||||
public String description;
|
||||
|
||||
/** Type of the Workflow Node (typically this is BPM engine specific - informational only */
|
||||
@Deprecated
|
||||
public String type;
|
||||
|
||||
/** Does this Workflow Node represent human interaction? */
|
||||
@Deprecated
|
||||
public boolean isTaskNode;
|
||||
|
||||
/** The transitions leaving this node (or null, if none) */
|
||||
@Deprecated
|
||||
public WorkflowTransition[] transitions;
|
||||
|
||||
public WorkflowNode(String name,
|
||||
String title, String description,
|
||||
String type, boolean isTaskNode,
|
||||
WorkflowTransition... transitions)
|
||||
{
|
||||
this.name = name;
|
||||
this.title = title;
|
||||
this.description = description;
|
||||
this.type = type;
|
||||
this.isTaskNode = isTaskNode;
|
||||
this.transitions = transitions;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the name
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the title
|
||||
*/
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the description
|
||||
*/
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the type
|
||||
*/
|
||||
public String getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the isTaskNode
|
||||
*/
|
||||
public boolean isTaskNode()
|
||||
{
|
||||
return isTaskNode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the transitions
|
||||
*/
|
||||
public WorkflowTransition[] getTransitions()
|
||||
{
|
||||
return transitions;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
String transitionsArray = "{";
|
||||
for (int i = 0; i < transitions.length; i++)
|
||||
{
|
||||
transitionsArray += ((i == 0) ? "" : ",") + "'" + transitions[i] + "'";
|
||||
}
|
||||
transitionsArray += "}";
|
||||
return "WorkflowNode[title=" + title + ",type=" + type + ",transitions=" + transitionsArray + "]";
|
||||
}
|
||||
}
|
||||
|
@@ -1,82 +1,82 @@
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
|
||||
/**
|
||||
* Workflow Path Data Object
|
||||
*
|
||||
* Represents a path within an "in-flight" workflow instance.
|
||||
*
|
||||
* Simple workflows consists of a single "root" path. Multiple paths occur when a workflow
|
||||
* instance branches, therefore more than one concurrent path is taken.
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class WorkflowPath
|
||||
{
|
||||
/** Unique id of Workflow Path */
|
||||
@Deprecated
|
||||
public String id;
|
||||
|
||||
/** Workflow Instance this path is part of */
|
||||
@Deprecated
|
||||
public WorkflowInstance instance;
|
||||
|
||||
/** The Workflow Node the path is at */
|
||||
@Deprecated
|
||||
public WorkflowNode node;
|
||||
|
||||
/** Is the path still active? */
|
||||
@Deprecated
|
||||
public boolean active;
|
||||
|
||||
public WorkflowPath(String id, WorkflowInstance instance, WorkflowNode node, boolean active)
|
||||
{
|
||||
this.id = id;
|
||||
this.instance = instance;
|
||||
this.node = node;
|
||||
this.active = active;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the id
|
||||
*/
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the instance
|
||||
*/
|
||||
public WorkflowInstance getInstance()
|
||||
{
|
||||
return instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the node
|
||||
*/
|
||||
public WorkflowNode getNode()
|
||||
{
|
||||
return node;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the active
|
||||
*/
|
||||
public boolean isActive()
|
||||
{
|
||||
return active;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "WorkflowPath[id=" + id + ",instance=" + instance.toString() + ",active=" + active + ",node=" + ((node != null) ? node.toString() : "null") + "]";
|
||||
}
|
||||
}
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
|
||||
/**
|
||||
* Workflow Path Data Object
|
||||
*
|
||||
* Represents a path within an "in-flight" workflow instance.
|
||||
*
|
||||
* Simple workflows consists of a single "root" path. Multiple paths occur when a workflow
|
||||
* instance branches, therefore more than one concurrent path is taken.
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class WorkflowPath
|
||||
{
|
||||
/** Unique id of Workflow Path */
|
||||
@Deprecated
|
||||
public String id;
|
||||
|
||||
/** Workflow Instance this path is part of */
|
||||
@Deprecated
|
||||
public WorkflowInstance instance;
|
||||
|
||||
/** The Workflow Node the path is at */
|
||||
@Deprecated
|
||||
public WorkflowNode node;
|
||||
|
||||
/** Is the path still active? */
|
||||
@Deprecated
|
||||
public boolean active;
|
||||
|
||||
public WorkflowPath(String id, WorkflowInstance instance, WorkflowNode node, boolean active)
|
||||
{
|
||||
this.id = id;
|
||||
this.instance = instance;
|
||||
this.node = node;
|
||||
this.active = active;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the id
|
||||
*/
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the instance
|
||||
*/
|
||||
public WorkflowInstance getInstance()
|
||||
{
|
||||
return instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the node
|
||||
*/
|
||||
public WorkflowNode getNode()
|
||||
{
|
||||
return node;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the active
|
||||
*/
|
||||
public boolean isActive()
|
||||
{
|
||||
return active;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "WorkflowPath[id=" + id + ",instance=" + instance.toString() + ",active=" + active + ",node=" + ((node != null) ? node.toString() : "null") + "]";
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -1,143 +1,143 @@
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Map;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
|
||||
|
||||
/**
|
||||
* Workflow Task Data Object
|
||||
*
|
||||
* Represents a human-oriented task within an "in-flight" workflow instance
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class WorkflowTask
|
||||
{
|
||||
/** Unique id of Task */
|
||||
@Deprecated
|
||||
public String id;
|
||||
|
||||
/** Task Name */
|
||||
@Deprecated
|
||||
public String name;
|
||||
|
||||
/** Task Title (Localised) */
|
||||
@Deprecated
|
||||
public String title;
|
||||
|
||||
/** Task Description (Localised) */
|
||||
@Deprecated
|
||||
public String description;
|
||||
|
||||
/** Task State */
|
||||
@Deprecated
|
||||
public WorkflowTaskState state;
|
||||
|
||||
/** Workflow path this Task is associated with */
|
||||
@Deprecated
|
||||
public WorkflowPath path;
|
||||
|
||||
/** Task Definition */
|
||||
@Deprecated
|
||||
public WorkflowTaskDefinition definition;
|
||||
|
||||
/** Task Properties as described by Task Definition */
|
||||
@Deprecated
|
||||
public Map<QName, Serializable> properties;
|
||||
|
||||
|
||||
public WorkflowTask(String id,
|
||||
WorkflowTaskDefinition definition,
|
||||
String name, String title, String description,
|
||||
WorkflowTaskState state, WorkflowPath path,
|
||||
Map<QName, Serializable> properties)
|
||||
{
|
||||
this.id = id;
|
||||
this.definition = definition;
|
||||
this.name = name;
|
||||
this.title = title;
|
||||
this.description = description;
|
||||
this.state = state;
|
||||
this.path = path;
|
||||
this.properties = properties;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the id
|
||||
*/
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the name
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the title
|
||||
*/
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the description
|
||||
*/
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the state
|
||||
*/
|
||||
public WorkflowTaskState getState()
|
||||
{
|
||||
return state;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the path
|
||||
*/
|
||||
public WorkflowPath getPath()
|
||||
{
|
||||
return path;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the definition
|
||||
*/
|
||||
public WorkflowTaskDefinition getDefinition()
|
||||
{
|
||||
return definition;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the properties
|
||||
*/
|
||||
public Map<QName, Serializable> getProperties()
|
||||
{
|
||||
return properties;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
String propCount = (properties == null) ? "null" : "" + properties.size();
|
||||
String pathString = path==null ? "null" : path.toString();
|
||||
return "WorkflowTask[id=" + id + ",title=" + title + ",state=" + state + ",props=" + propCount + ",def=" + definition + ",path=" + pathString + "]";
|
||||
}
|
||||
}
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Map;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
|
||||
|
||||
/**
|
||||
* Workflow Task Data Object
|
||||
*
|
||||
* Represents a human-oriented task within an "in-flight" workflow instance
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class WorkflowTask
|
||||
{
|
||||
/** Unique id of Task */
|
||||
@Deprecated
|
||||
public String id;
|
||||
|
||||
/** Task Name */
|
||||
@Deprecated
|
||||
public String name;
|
||||
|
||||
/** Task Title (Localised) */
|
||||
@Deprecated
|
||||
public String title;
|
||||
|
||||
/** Task Description (Localised) */
|
||||
@Deprecated
|
||||
public String description;
|
||||
|
||||
/** Task State */
|
||||
@Deprecated
|
||||
public WorkflowTaskState state;
|
||||
|
||||
/** Workflow path this Task is associated with */
|
||||
@Deprecated
|
||||
public WorkflowPath path;
|
||||
|
||||
/** Task Definition */
|
||||
@Deprecated
|
||||
public WorkflowTaskDefinition definition;
|
||||
|
||||
/** Task Properties as described by Task Definition */
|
||||
@Deprecated
|
||||
public Map<QName, Serializable> properties;
|
||||
|
||||
|
||||
public WorkflowTask(String id,
|
||||
WorkflowTaskDefinition definition,
|
||||
String name, String title, String description,
|
||||
WorkflowTaskState state, WorkflowPath path,
|
||||
Map<QName, Serializable> properties)
|
||||
{
|
||||
this.id = id;
|
||||
this.definition = definition;
|
||||
this.name = name;
|
||||
this.title = title;
|
||||
this.description = description;
|
||||
this.state = state;
|
||||
this.path = path;
|
||||
this.properties = properties;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the id
|
||||
*/
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the name
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the title
|
||||
*/
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the description
|
||||
*/
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the state
|
||||
*/
|
||||
public WorkflowTaskState getState()
|
||||
{
|
||||
return state;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the path
|
||||
*/
|
||||
public WorkflowPath getPath()
|
||||
{
|
||||
return path;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the definition
|
||||
*/
|
||||
public WorkflowTaskDefinition getDefinition()
|
||||
{
|
||||
return definition;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the properties
|
||||
*/
|
||||
public Map<QName, Serializable> getProperties()
|
||||
{
|
||||
return properties;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
String propCount = (properties == null) ? "null" : "" + properties.size();
|
||||
String pathString = path==null ? "null" : path.toString();
|
||||
return "WorkflowTask[id=" + id + ",title=" + title + ",state=" + state + ",props=" + propCount + ",def=" + definition + ",path=" + pathString + "]";
|
||||
}
|
||||
}
|
||||
|
@@ -1,70 +1,70 @@
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
import org.alfresco.service.cmr.dictionary.TypeDefinition;
|
||||
|
||||
|
||||
/**
|
||||
* Workflow Task Definition Data Object.
|
||||
*
|
||||
* Represents meta-data for a Workflow Task. The meta-data is described in terms
|
||||
* of the Alfresco Data Dictionary.
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class WorkflowTaskDefinition
|
||||
{
|
||||
/** Unique id of Workflow Task Definition */
|
||||
@Deprecated
|
||||
public String id;
|
||||
|
||||
/** Workflow Node this task created from */
|
||||
@Deprecated
|
||||
public WorkflowNode node;
|
||||
|
||||
/** Task Metadata */
|
||||
@Deprecated
|
||||
public TypeDefinition metadata;
|
||||
|
||||
public WorkflowTaskDefinition(String id, WorkflowNode node, TypeDefinition metadata)
|
||||
{
|
||||
this.id = id;
|
||||
this.node = node;
|
||||
this.metadata = metadata;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the id
|
||||
*/
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the metadata
|
||||
*/
|
||||
public TypeDefinition getMetadata()
|
||||
{
|
||||
return metadata;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the node
|
||||
*/
|
||||
public WorkflowNode getNode()
|
||||
{
|
||||
return node;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "WorkflowTaskDefinition[id=" + id + ",metadata=" + metadata + "]";
|
||||
}
|
||||
}
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
import org.alfresco.service.cmr.dictionary.TypeDefinition;
|
||||
|
||||
|
||||
/**
|
||||
* Workflow Task Definition Data Object.
|
||||
*
|
||||
* Represents meta-data for a Workflow Task. The meta-data is described in terms
|
||||
* of the Alfresco Data Dictionary.
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class WorkflowTaskDefinition
|
||||
{
|
||||
/** Unique id of Workflow Task Definition */
|
||||
@Deprecated
|
||||
public String id;
|
||||
|
||||
/** Workflow Node this task created from */
|
||||
@Deprecated
|
||||
public WorkflowNode node;
|
||||
|
||||
/** Task Metadata */
|
||||
@Deprecated
|
||||
public TypeDefinition metadata;
|
||||
|
||||
public WorkflowTaskDefinition(String id, WorkflowNode node, TypeDefinition metadata)
|
||||
{
|
||||
this.id = id;
|
||||
this.node = node;
|
||||
this.metadata = metadata;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the id
|
||||
*/
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the metadata
|
||||
*/
|
||||
public TypeDefinition getMetadata()
|
||||
{
|
||||
return metadata;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the node
|
||||
*/
|
||||
public WorkflowNode getNode()
|
||||
{
|
||||
return node;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "WorkflowTaskDefinition[id=" + id + ",metadata=" + metadata + "]";
|
||||
}
|
||||
}
|
||||
|
@@ -1,271 +1,271 @@
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
|
||||
|
||||
/**
|
||||
* Workflow Task Query
|
||||
*
|
||||
* Provides support for setting predicates and order by.
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class WorkflowTaskQuery
|
||||
{
|
||||
// Engine Id
|
||||
private String engineId = null;
|
||||
|
||||
// task predicates
|
||||
private String taskId;
|
||||
private WorkflowTaskState taskState = WorkflowTaskState.IN_PROGRESS;
|
||||
private QName taskName;
|
||||
private String actorId;
|
||||
private Map<QName, Object> taskCustomProps;
|
||||
|
||||
// process predicates
|
||||
private String processId;
|
||||
private QName processName;
|
||||
private String workflowDefinitionName;
|
||||
private Boolean active = Boolean.TRUE;
|
||||
private Map<QName, Object> processCustomProps;
|
||||
|
||||
// order by
|
||||
private OrderBy[] orderBy;
|
||||
|
||||
// result set size
|
||||
private int limit = -1;
|
||||
|
||||
/**
|
||||
* Order By Columns
|
||||
*/
|
||||
public enum OrderBy
|
||||
{
|
||||
TaskId_Asc,
|
||||
TaskId_Desc,
|
||||
TaskCreated_Asc,
|
||||
TaskCreated_Desc,
|
||||
TaskDue_Asc,
|
||||
TaskDue_Desc,
|
||||
TaskName_Asc,
|
||||
TaskName_Desc,
|
||||
TaskActor_Asc,
|
||||
TaskActor_Desc,
|
||||
TaskState_Asc,
|
||||
TaskState_Desc;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param orderBy OrderBy[]
|
||||
*/
|
||||
public void setOrderBy(OrderBy[] orderBy)
|
||||
{
|
||||
this.orderBy = orderBy;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return OrderBy[]
|
||||
*/
|
||||
public OrderBy[] getOrderBy()
|
||||
{
|
||||
return orderBy;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return String
|
||||
*/
|
||||
public String getTaskId()
|
||||
{
|
||||
return taskId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param taskId String
|
||||
*/
|
||||
public void setTaskId(String taskId)
|
||||
{
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Map
|
||||
*/
|
||||
public Map<QName, Object> getTaskCustomProps()
|
||||
{
|
||||
return taskCustomProps;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param taskCustomProps Map<QName, Object>
|
||||
*/
|
||||
public void setTaskCustomProps(Map<QName, Object> taskCustomProps)
|
||||
{
|
||||
this.taskCustomProps = taskCustomProps;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WorkflowTaskState
|
||||
*/
|
||||
public WorkflowTaskState getTaskState()
|
||||
{
|
||||
return taskState;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param taskState WorkflowTaskState
|
||||
*/
|
||||
public void setTaskState(WorkflowTaskState taskState)
|
||||
{
|
||||
this.taskState = taskState;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return QName
|
||||
*/
|
||||
public QName getTaskName()
|
||||
{
|
||||
return taskName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param taskName QName
|
||||
*/
|
||||
public void setTaskName(QName taskName)
|
||||
{
|
||||
this.taskName = taskName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return String
|
||||
*/
|
||||
public String getActorId()
|
||||
{
|
||||
return actorId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param actorId String
|
||||
*/
|
||||
public void setActorId(String actorId)
|
||||
{
|
||||
this.actorId = actorId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return String
|
||||
*/
|
||||
public String getProcessId()
|
||||
{
|
||||
return processId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters ont he {@link WorkflowInstance} Id.
|
||||
* @param processId String
|
||||
*/
|
||||
public void setProcessId(String processId)
|
||||
{
|
||||
this.processId = processId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return QName
|
||||
*/
|
||||
public QName getProcessName()
|
||||
{
|
||||
return processName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use {@link WorkflowTaskQuery#setWorkflowDefinitionName(String)} instead.
|
||||
* Filters on the {@link WorkflowDefinition} name. When using Activiti,
|
||||
* the method {@link #setWorkflowDefinitionName(String)} should be used
|
||||
* instead of this method.
|
||||
*
|
||||
* @param processName QName
|
||||
*/
|
||||
@Deprecated
|
||||
public void setProcessName(QName processName)
|
||||
{
|
||||
this.processName = processName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return String
|
||||
*/
|
||||
public String getWorkflowDefinitionName()
|
||||
{
|
||||
return workflowDefinitionName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters on the {@link WorkflowDefinition} name.
|
||||
* @param workflowDefinitionName String
|
||||
*/
|
||||
public void setWorkflowDefinitionName(String workflowDefinitionName)
|
||||
{
|
||||
this.workflowDefinitionName = workflowDefinitionName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Boolean
|
||||
*/
|
||||
public Boolean isActive()
|
||||
{
|
||||
return active;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param active Boolean
|
||||
*/
|
||||
public void setActive(Boolean active)
|
||||
{
|
||||
this.active = active;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Map
|
||||
*/
|
||||
public Map<QName, Object> getProcessCustomProps()
|
||||
{
|
||||
return processCustomProps;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param processCustomProps Map<QName, Object>
|
||||
*/
|
||||
public void setProcessCustomProps(Map<QName, Object> processCustomProps)
|
||||
{
|
||||
this.processCustomProps = processCustomProps;
|
||||
}
|
||||
|
||||
public int getLimit()
|
||||
{
|
||||
return this.limit;
|
||||
}
|
||||
|
||||
public void setLimit(int limit)
|
||||
{
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param engineId the engineId to set
|
||||
*/
|
||||
public void setEngineId(String engineId)
|
||||
{
|
||||
this.engineId = engineId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the engineId
|
||||
*/
|
||||
public String getEngineId()
|
||||
{
|
||||
return engineId;
|
||||
}
|
||||
}
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
|
||||
|
||||
/**
|
||||
* Workflow Task Query
|
||||
*
|
||||
* Provides support for setting predicates and order by.
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class WorkflowTaskQuery
|
||||
{
|
||||
// Engine Id
|
||||
private String engineId = null;
|
||||
|
||||
// task predicates
|
||||
private String taskId;
|
||||
private WorkflowTaskState taskState = WorkflowTaskState.IN_PROGRESS;
|
||||
private QName taskName;
|
||||
private String actorId;
|
||||
private Map<QName, Object> taskCustomProps;
|
||||
|
||||
// process predicates
|
||||
private String processId;
|
||||
private QName processName;
|
||||
private String workflowDefinitionName;
|
||||
private Boolean active = Boolean.TRUE;
|
||||
private Map<QName, Object> processCustomProps;
|
||||
|
||||
// order by
|
||||
private OrderBy[] orderBy;
|
||||
|
||||
// result set size
|
||||
private int limit = -1;
|
||||
|
||||
/**
|
||||
* Order By Columns
|
||||
*/
|
||||
public enum OrderBy
|
||||
{
|
||||
TaskId_Asc,
|
||||
TaskId_Desc,
|
||||
TaskCreated_Asc,
|
||||
TaskCreated_Desc,
|
||||
TaskDue_Asc,
|
||||
TaskDue_Desc,
|
||||
TaskName_Asc,
|
||||
TaskName_Desc,
|
||||
TaskActor_Asc,
|
||||
TaskActor_Desc,
|
||||
TaskState_Asc,
|
||||
TaskState_Desc;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param orderBy OrderBy[]
|
||||
*/
|
||||
public void setOrderBy(OrderBy[] orderBy)
|
||||
{
|
||||
this.orderBy = orderBy;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return OrderBy[]
|
||||
*/
|
||||
public OrderBy[] getOrderBy()
|
||||
{
|
||||
return orderBy;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return String
|
||||
*/
|
||||
public String getTaskId()
|
||||
{
|
||||
return taskId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param taskId String
|
||||
*/
|
||||
public void setTaskId(String taskId)
|
||||
{
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Map
|
||||
*/
|
||||
public Map<QName, Object> getTaskCustomProps()
|
||||
{
|
||||
return taskCustomProps;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param taskCustomProps Map<QName, Object>
|
||||
*/
|
||||
public void setTaskCustomProps(Map<QName, Object> taskCustomProps)
|
||||
{
|
||||
this.taskCustomProps = taskCustomProps;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WorkflowTaskState
|
||||
*/
|
||||
public WorkflowTaskState getTaskState()
|
||||
{
|
||||
return taskState;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param taskState WorkflowTaskState
|
||||
*/
|
||||
public void setTaskState(WorkflowTaskState taskState)
|
||||
{
|
||||
this.taskState = taskState;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return QName
|
||||
*/
|
||||
public QName getTaskName()
|
||||
{
|
||||
return taskName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param taskName QName
|
||||
*/
|
||||
public void setTaskName(QName taskName)
|
||||
{
|
||||
this.taskName = taskName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return String
|
||||
*/
|
||||
public String getActorId()
|
||||
{
|
||||
return actorId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param actorId String
|
||||
*/
|
||||
public void setActorId(String actorId)
|
||||
{
|
||||
this.actorId = actorId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return String
|
||||
*/
|
||||
public String getProcessId()
|
||||
{
|
||||
return processId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters ont he {@link WorkflowInstance} Id.
|
||||
* @param processId String
|
||||
*/
|
||||
public void setProcessId(String processId)
|
||||
{
|
||||
this.processId = processId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return QName
|
||||
*/
|
||||
public QName getProcessName()
|
||||
{
|
||||
return processName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use {@link WorkflowTaskQuery#setWorkflowDefinitionName(String)} instead.
|
||||
* Filters on the {@link WorkflowDefinition} name. When using Activiti,
|
||||
* the method {@link #setWorkflowDefinitionName(String)} should be used
|
||||
* instead of this method.
|
||||
*
|
||||
* @param processName QName
|
||||
*/
|
||||
@Deprecated
|
||||
public void setProcessName(QName processName)
|
||||
{
|
||||
this.processName = processName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return String
|
||||
*/
|
||||
public String getWorkflowDefinitionName()
|
||||
{
|
||||
return workflowDefinitionName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters on the {@link WorkflowDefinition} name.
|
||||
* @param workflowDefinitionName String
|
||||
*/
|
||||
public void setWorkflowDefinitionName(String workflowDefinitionName)
|
||||
{
|
||||
this.workflowDefinitionName = workflowDefinitionName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Boolean
|
||||
*/
|
||||
public Boolean isActive()
|
||||
{
|
||||
return active;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param active Boolean
|
||||
*/
|
||||
public void setActive(Boolean active)
|
||||
{
|
||||
this.active = active;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Map
|
||||
*/
|
||||
public Map<QName, Object> getProcessCustomProps()
|
||||
{
|
||||
return processCustomProps;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param processCustomProps Map<QName, Object>
|
||||
*/
|
||||
public void setProcessCustomProps(Map<QName, Object> processCustomProps)
|
||||
{
|
||||
this.processCustomProps = processCustomProps;
|
||||
}
|
||||
|
||||
public int getLimit()
|
||||
{
|
||||
return this.limit;
|
||||
}
|
||||
|
||||
public void setLimit(int limit)
|
||||
{
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param engineId the engineId to set
|
||||
*/
|
||||
public void setEngineId(String engineId)
|
||||
{
|
||||
this.engineId = engineId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the engineId
|
||||
*/
|
||||
public String getEngineId()
|
||||
{
|
||||
return engineId;
|
||||
}
|
||||
}
|
||||
|
@@ -1,21 +1,21 @@
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
|
||||
/**
|
||||
* Workflow Task State
|
||||
*
|
||||
* Represents the high-level state of Workflow Task (in relation to "in-flight"
|
||||
* workflow instance).
|
||||
*
|
||||
* A user-defined task state may be represented as Task Property (and described
|
||||
* by the Alfresco Data Dictionary).
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public enum WorkflowTaskState
|
||||
{
|
||||
IN_PROGRESS,
|
||||
COMPLETED;
|
||||
}
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
|
||||
/**
|
||||
* Workflow Task State
|
||||
*
|
||||
* Represents the high-level state of Workflow Task (in relation to "in-flight"
|
||||
* workflow instance).
|
||||
*
|
||||
* A user-defined task state may be represented as Task Property (and described
|
||||
* by the Alfresco Data Dictionary).
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public enum WorkflowTaskState
|
||||
{
|
||||
IN_PROGRESS,
|
||||
COMPLETED;
|
||||
}
|
||||
|
@@ -1,106 +1,106 @@
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
|
||||
@AlfrescoPublicApi
|
||||
public class WorkflowTimer
|
||||
{
|
||||
/** Timer Id */
|
||||
@Deprecated
|
||||
public String id;
|
||||
|
||||
/** Transition Name */
|
||||
@Deprecated
|
||||
public String name;
|
||||
|
||||
/** Associated Workflow Path */
|
||||
@Deprecated
|
||||
public WorkflowPath path;
|
||||
|
||||
/** Associated Workflow Task (if any) */
|
||||
@Deprecated
|
||||
public WorkflowTask task;
|
||||
|
||||
/** Due Date */
|
||||
@Deprecated
|
||||
public Date dueDate;
|
||||
|
||||
/** Error */
|
||||
@Deprecated
|
||||
public String error;
|
||||
|
||||
|
||||
|
||||
public WorkflowTimer(String id, String name, WorkflowPath path,
|
||||
WorkflowTask task, Date dueDate, String error) {
|
||||
super();
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.path = path;
|
||||
this.task = task;
|
||||
this.dueDate = dueDate;
|
||||
this.error = error;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the id
|
||||
*/
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the name
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the path
|
||||
*/
|
||||
public WorkflowPath getPath()
|
||||
{
|
||||
return path;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the task
|
||||
*/
|
||||
public WorkflowTask getTask()
|
||||
{
|
||||
return task;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the dueDate
|
||||
*/
|
||||
public Date getDueDate()
|
||||
{
|
||||
return dueDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the error
|
||||
*/
|
||||
public String getError()
|
||||
{
|
||||
return error;
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "WorkflowTimer[id=" + id + ",name=" + name + ",dueDate=" + dueDate + ",path=" + path + ",task=" + task + "]";
|
||||
}
|
||||
|
||||
}
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
|
||||
@AlfrescoPublicApi
|
||||
public class WorkflowTimer
|
||||
{
|
||||
/** Timer Id */
|
||||
@Deprecated
|
||||
public String id;
|
||||
|
||||
/** Transition Name */
|
||||
@Deprecated
|
||||
public String name;
|
||||
|
||||
/** Associated Workflow Path */
|
||||
@Deprecated
|
||||
public WorkflowPath path;
|
||||
|
||||
/** Associated Workflow Task (if any) */
|
||||
@Deprecated
|
||||
public WorkflowTask task;
|
||||
|
||||
/** Due Date */
|
||||
@Deprecated
|
||||
public Date dueDate;
|
||||
|
||||
/** Error */
|
||||
@Deprecated
|
||||
public String error;
|
||||
|
||||
|
||||
|
||||
public WorkflowTimer(String id, String name, WorkflowPath path,
|
||||
WorkflowTask task, Date dueDate, String error) {
|
||||
super();
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.path = path;
|
||||
this.task = task;
|
||||
this.dueDate = dueDate;
|
||||
this.error = error;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the id
|
||||
*/
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the name
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the path
|
||||
*/
|
||||
public WorkflowPath getPath()
|
||||
{
|
||||
return path;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the task
|
||||
*/
|
||||
public WorkflowTask getTask()
|
||||
{
|
||||
return task;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the dueDate
|
||||
*/
|
||||
public Date getDueDate()
|
||||
{
|
||||
return dueDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the error
|
||||
*/
|
||||
public String getError()
|
||||
{
|
||||
return error;
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "WorkflowTimer[id=" + id + ",name=" + name + ",dueDate=" + dueDate + ",path=" + path + ",task=" + task + "]";
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -1,77 +1,77 @@
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
|
||||
/**
|
||||
* Workflow Transition.
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class WorkflowTransition
|
||||
{
|
||||
/** Transition Id */
|
||||
@Deprecated
|
||||
public String id;
|
||||
|
||||
/** Transition Title (Localised) */
|
||||
@Deprecated
|
||||
public String title;
|
||||
|
||||
/** Transition Description (Localised) */
|
||||
@Deprecated
|
||||
public String description;
|
||||
|
||||
/** Is this the default transition */
|
||||
@Deprecated
|
||||
public boolean isDefault;
|
||||
|
||||
public WorkflowTransition(String id, String title, String description, boolean isDefault)
|
||||
{
|
||||
this.id = id;
|
||||
this.title = title;
|
||||
this.description = description;
|
||||
this.isDefault = isDefault;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the id
|
||||
*/
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the title
|
||||
*/
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the description
|
||||
*/
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the isDefault
|
||||
*/
|
||||
public boolean isDefault()
|
||||
{
|
||||
return isDefault;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "WorkflowTransition[id=" + id + ",title=" + title + "]";
|
||||
}
|
||||
}
|
||||
package org.alfresco.service.cmr.workflow;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
|
||||
/**
|
||||
* Workflow Transition.
|
||||
*
|
||||
* @author davidc
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class WorkflowTransition
|
||||
{
|
||||
/** Transition Id */
|
||||
@Deprecated
|
||||
public String id;
|
||||
|
||||
/** Transition Title (Localised) */
|
||||
@Deprecated
|
||||
public String title;
|
||||
|
||||
/** Transition Description (Localised) */
|
||||
@Deprecated
|
||||
public String description;
|
||||
|
||||
/** Is this the default transition */
|
||||
@Deprecated
|
||||
public boolean isDefault;
|
||||
|
||||
public WorkflowTransition(String id, String title, String description, boolean isDefault)
|
||||
{
|
||||
this.id = id;
|
||||
this.title = title;
|
||||
this.description = description;
|
||||
this.isDefault = isDefault;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the id
|
||||
*/
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the title
|
||||
*/
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the description
|
||||
*/
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the isDefault
|
||||
*/
|
||||
public boolean isDefault()
|
||||
{
|
||||
return isDefault;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "WorkflowTransition[id=" + id + ",title=" + title + "]";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user