@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;
public String name() { return core.name(); }
public String namespace() { return core.namespace(); }
@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;
static <T,C,F,M> QName calcSchemaType( AnnotationReader<T,C,F,M> reader, AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) { XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class); if(xst!=null) { return new QName(xst.namespace(),xst.name()); } // check the defaulted annotation XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src); XmlSchemaType[] values = null; if(xsts!=null) values = xsts.value(); else { xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src); if(xst!=null) { values = new XmlSchemaType[1]; values[0] = xst; } } if(values!=null) { for( XmlSchemaType item : values ) { if(reader.getClassValue(item,"type").equals(individualType)) { return new QName(item.namespace(),item.name()); } } } return null; }
@XmlRootElement(name="get-attachment-command") @XmlAccessorType(XmlAccessType.NONE) public class GetAttachmentCommand extends TaskCommand<Attachment> { @XmlElement(name="attachment-id") @XmlSchemaType(name="long") private Long attachmentId;
static <T,C,F,M> QName calcSchemaType( AnnotationReader<T,C,F,M> reader, AnnotationSource primarySource, C enclosingClass, T individualType, Locatable src ) { XmlSchemaType xst = primarySource.readAnnotation(XmlSchemaType.class); if(xst!=null) { return new QName(xst.namespace(),xst.name()); } // check the defaulted annotation XmlSchemaTypes xsts = reader.getPackageAnnotation(XmlSchemaTypes.class,enclosingClass,src); XmlSchemaType[] values = null; if(xsts!=null) values = xsts.value(); else { xst = reader.getPackageAnnotation(XmlSchemaType.class,enclosingClass,src); if(xst!=null) { values = new XmlSchemaType[1]; values[0] = xst; } } if(values!=null) { for( XmlSchemaType item : values ) { if(reader.getClassValue(item,"type").equals(individualType)) { return new QName(item.namespace(),item.name()); } } } return null; }
@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;
@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;
public String name() { return core.name(); }
public String namespace() { return core.namespace(); }
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CT_UnsignedInt") public class CTUnsignedInt { @XmlAttribute(required = true) @XmlSchemaType(name = "unsignedInt") protected long val;
@XmlRootElement(name="get-comment-command") @XmlAccessorType(XmlAccessType.NONE) public class GetCommentCommand extends TaskCommand<Comment> { @XmlElement @XmlSchemaType(name="long") private Long commentId;
XmlSchemaType schemaTypeAnnotation = builder.reader.getFieldAnnotation(XmlSchemaType.class, f, this); if (schemaTypeAnnotation != null) { if ("token".equals(schemaTypeAnnotation.name())) { tokenStringType = true; break;
/** * The specified namespace. * * @return The specified namespace. */ public String getNamespace() { return annotation.namespace(); }
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CT_CustomShowId") public class CTCustomShowId { @XmlAttribute(name = "id", required = true) @XmlSchemaType(name = "unsignedInt") protected long id;
@XmlRootElement(name="get-task-definition-command") @XmlAccessorType(XmlAccessType.NONE) public class GetTaskDefinitionCommand extends TaskCommand<TaskDef> { @XmlElement @XmlSchemaType(name="string") private String definitionId;