@Override protected PrismContainerValue getValueFrom(WorkItemType value) { return value.asPrismContainerValue(); }
@Override protected PrismContainerValue getValueFrom(WorkItemType value) { return value.asPrismContainerValue(); }
@Override public boolean equals(Object object) { if (!(object instanceof WorkItemType)) { return false; } WorkItemType other = ((WorkItemType) object); return asPrismContainerValue().equivalent(other.asPrismContainerValue()); }
@XmlElement(required = true, name = "externalId") public String getExternalId() { return PrismForJAXBUtil.getPropertyValue(asPrismContainerValue(), F_EXTERNAL_ID, String.class); }
@XmlElement(name = "additionalInformation") public List<InformationType> getAdditionalInformation() { return PrismForJAXBUtil.getPropertyValues(asPrismContainerValue(), F_ADDITIONAL_INFORMATION, InformationType.class); }
@Override public String toString() { return asPrismContainerValue().toString(); }
@Override public int hashCode() { return asPrismContainerValue().hashCode(); }
@XmlElement(name = "processSpecificPart") public WfProcessSpecificWorkItemPartType getProcessSpecificPart() { return PrismForJAXBUtil.getFieldSingleContainerable(asPrismContainerValue(), F_PROCESS_SPECIFIC_PART, WfProcessSpecificWorkItemPartType.class); }
public void setExternalId(String value) { PrismForJAXBUtil.setPropertyValue(asPrismContainerValue(), F_EXTERNAL_ID, value); }
public List<InformationType> createAdditionalInformationList() { PrismForJAXBUtil.createProperty(asPrismContainerValue(), F_ADDITIONAL_INFORMATION); return getAdditionalInformation(); }
public void setProcessSpecificPart(WfProcessSpecificWorkItemPartType value) { PrismContainerValue fieldContainerValue = ((value!= null)?value.asPrismContainerValue():null); PrismForJAXBUtil.setFieldContainerValue(asPrismContainerValue(), F_PROCESS_SPECIFIC_PART, fieldContainerValue); }
public static WfContextType getWorkflowContext(WorkItemType workItem) { PrismContainerValue<?> parent = PrismValueUtil.getParentContainerValue(workItem.asPrismContainerValue()); if (parent == null) { LOGGER.error("No workflow context for workItem {}", workItem); // this is only a workaround, FIXME MID-4030 return new WfContextType(workItem.asPrismContainerValue().getPrismContext()); } Containerable parentReal = parent.asContainerable(); if (!(parentReal instanceof WfContextType)) { throw new IllegalStateException("WorkItem's parent is not a WfContextType; it is " + parentReal); } return (WfContextType) parentReal; }
public WorkItemType clone() { WorkItemType object = new WorkItemType(); PrismContainerValue value = asPrismContainerValue().clone(); object.setupContainerValue(value); return object; }
public<X >X end() { return ((X)((PrismContainerValue)((PrismContainer) asPrismContainerValue().getParent()).getParent()).asContainerable()); }