@XmlRootElement(name="undeploy-task-def-command") @XmlAccessorType(XmlAccessType.NONE) public class UndeployTaskDefCommand extends TaskCommand<Void> { private static final long serialVersionUID = 5656199063761548979L; @XmlElement @XmlSchemaType(name="string") private String taskDefId; public UndeployTaskDefCommand() { } public UndeployTaskDefCommand(String taskDefId) { this.taskDefId = taskDefId; } public Void execute(Context cntxt) { TaskContext context = (TaskContext) cntxt; context.getTaskDefService().undeployTaskDef(taskDefId); return null; } }
@XmlAccessorType(XmlAccessType.NONE) public class GetProcessInstanceVariableCommand implements ExecutableCommand<Object>, ProcessInstanceIdCommand { @XmlAttribute(required=true) @XmlSchemaType(name="long") private Long processInstanceId; @XmlAttribute(required=true) @XmlSchemaType(name="string") private String variableId;
@XmlAccessorType(XmlAccessType.FIELD) public abstract class TaskCommand<T> implements ExecutableCommand<T> { @XmlElement(name="task-id") @XmlSchemaType(name="long") protected Long taskId; @XmlElement(name="user-id") @XmlSchemaType(name="string") protected String userId; @XmlElement(name="group-id") protected List<String> groupIds; @XmlElement(name="target-entity-id") @XmlSchemaType(name="string") protected String targetEntityId;
@XmlRootElement(name="get-attachment-command") @XmlAccessorType(XmlAccessType.NONE) public class GetAttachmentCommand extends TaskCommand<Attachment> { @XmlElement(name="attachment-id") @XmlSchemaType(name="long") private Long attachmentId;
@XmlRootElement(name="get-task-by-work-item-id-command") @XmlAccessorType(XmlAccessType.NONE) public class GetTaskByWorkItemIdCommand extends TaskCommand<Task> { @XmlElement @XmlSchemaType(name="long") private Long workItemId;
@XmlRootElement(name="get-comment-command") @XmlAccessorType(XmlAccessType.NONE) public class GetCommentCommand extends TaskCommand<Comment> { @XmlElement @XmlSchemaType(name="long") private Long commentId;
@XmlRootElement(name="get-task-definition-command") @XmlAccessorType(XmlAccessType.NONE) public class GetTaskDefinitionCommand extends TaskCommand<TaskDef> { @XmlElement @XmlSchemaType(name="string") private String definitionId;
@XmlRootElement(name="get-pending-sub-tasks-command") @XmlAccessorType(XmlAccessType.NONE) public class GetPendingSubTasksCommand extends TaskCommand<Integer> { @XmlElement @XmlSchemaType(name="long") private Long parentId;
@XmlRootElement(name="get-content-by-id-command") @XmlAccessorType(XmlAccessType.NONE) public class GetContentByIdCommand extends TaskCommand<Content> { @XmlElement @XmlSchemaType(name="long") private Long contentId;
@XmlRootElement(name="get-all-task-definitions-command") @XmlAccessorType(XmlAccessType.NONE) public class GetAllTaskDefinitionsCommand extends TaskCommand<List<TaskDef>> { @XmlElement @XmlSchemaType(name="string") private String filter;
@XmlRootElement(name="remove-group-command") @XmlAccessorType(XmlAccessType.NONE) public class RemoveGroupCommand extends TaskCommand<Void> { @XmlElement @XmlSchemaType(name="string") private String groupId;
@XmlRootElement(name="get-tasks-by-process-instance-id-command") @XmlAccessorType(XmlAccessType.NONE) public class GetTasksByProcessInstanceIdCommand extends TaskCommand<List<Long>> implements ProcessInstanceIdCommand { @XmlElement(name="process-instance-id") @XmlSchemaType(name="long") private Long processInstanceId;
@XmlRootElement(name = "delete-comment-command") @XmlAccessorType(XmlAccessType.NONE) public class DeleteCommentCommand extends TaskCommand<Void> { @XmlElement(required = true) @XmlSchemaType(name = "long") private Long commentId;
@XmlRootElement(name="get-content-by-id-for-user-command") @XmlAccessorType(XmlAccessType.NONE) public class GetContentByIdForUserCommand extends UserGroupCallbackTaskCommand<Content> { @XmlElement @XmlSchemaType(name="long") private Long contentId;
@XmlRootElement(name="add-group-command") @XmlAccessorType(XmlAccessType.NONE) public class AddGroupCommand extends TaskCommand<Void> { @XmlElement @XmlSchemaType(name="string") private String groupId;
@XmlRootElement @XmlAccessorType(XmlAccessType.NONE) public class FindProcessInstanceCommand extends AuditCommand<ProcessInstanceLog> implements ProcessInstanceIdCommand { @XmlAttribute(required=true, name="process-instance-id") @XmlSchemaType(name="long") private Long processInstanceId;
@XmlRootElement @XmlAccessorType(XmlAccessType.NONE) public class FindSubProcessInstancesCommand extends AuditCommand<List<ProcessInstanceLog>> implements ProcessInstanceIdCommand { @XmlAttribute(required=true, name="process-instance-id") @XmlSchemaType(name="long") private Long processInstanceId;
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CT_UnsignedInt") public class CTUnsignedInt { @XmlAttribute(required = true) @XmlSchemaType(name = "unsignedInt") protected long val;
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CT_CustomShowId") public class CTCustomShowId { @XmlAttribute(name = "id", required = true) @XmlSchemaType(name = "unsignedInt") protected long id;
@XmlRootElement(name = "get-sub-tasks-command") @XmlAccessorType(XmlAccessType.NONE) public class GetSubTasksCommand extends UserGroupCallbackTaskCommand<List<TaskSummary>> { @XmlElement @XmlSchemaType(name = "long") private Long parentId;