public WorkItemNotificationActionType clone() { WorkItemNotificationActionType object = new WorkItemNotificationActionType(); PrismContainerValue value = asPrismContainerValue().clone(); object.setupContainerValue(value); return object; }
public WorkItemNotificationActionType condition(ExpressionType value) { setCondition(value); return this; }
public WorkItemNotificationActionType description(String value) { setDescription(value); return this; }
@Override protected WorkItemNotificationActionType createItem(PrismContainerValue value) { WorkItemNotificationActionType notify = new WorkItemNotificationActionType(); notify.setupContainerValue(value); return notify; }
/** * Create an instance of {@link WorkItemNotificationActionType } * */ public WorkItemNotificationActionType createWorkItemNotificationActionType() { return new WorkItemNotificationActionType(); }
@Override protected PrismContainerValue getValueFrom(WorkItemNotificationActionType value) { return value.asPrismContainerValue(); }
public WorkItemNotificationActionType displayName(String value) { setDisplayName(value); return this; }
public EventHandlerType beginHandler() { EventHandlerType value = new EventHandlerType(); handler(value); return value; }
public ExpressionType beginCondition() { ExpressionType value = new ExpressionType(); condition(value); return value; }
private void executeNotificationAction(WorkItemType workItem, @NotNull WorkItemNotificationActionType notificationAction, Task wfTask, OperationResult result) throws SchemaException { WorkItemEventCauseInformationType cause = WfContextUtil.createCause(notificationAction); if (BooleanUtils.isNotFalse(notificationAction.isPerAssignee())) { List<ObjectReferenceType> assigneesAndDeputies = wfTaskController.getAssigneesAndDeputies(workItem, wfTask, result); for (ObjectReferenceType assigneeOrDeputy : assigneesAndDeputies) { wfTaskController.notifyWorkItemCustom(assigneeOrDeputy, workItem, cause, wfTask, notificationAction, result); } } else { wfTaskController.notifyWorkItemCustom(null, workItem, cause, wfTask, notificationAction, result); } }
@Override public void onWorkItemCustomEvent(ObjectReferenceType assignee, @NotNull WorkItemType workItem, @NotNull WorkItemNotificationActionType notificationAction, WorkItemEventCauseInformationType cause, Task wfTask, OperationResult result) { WorkItemEvent event = new WorkItemCustomEvent(identifierGenerator, ChangeType.ADD, workItem, SimpleObjectRefImpl.create(functions, assignee), new WorkItemOperationSourceInfo(null, cause, notificationAction), wfTask.getWorkflowContext(), wfTask.getTaskType(), notificationAction.getHandler()); initializeWorkflowEvent(event, wfTask); processEvent(event, result); }
/** * Create an instance of {@link WorkItemNotificationActionType } * */ public WorkItemNotificationActionType createWorkItemNotificationActionType() { return new WorkItemNotificationActionType(); }
@Override public boolean equals(Object object) { if (!(object instanceof WorkItemNotificationActionType)) { return false; } WorkItemNotificationActionType other = ((WorkItemNotificationActionType) object); return asPrismContainerValue().equivalent(other.asPrismContainerValue()); }
/** * Create an instance of {@link WorkItemNotificationActionType } * */ public WorkItemNotificationActionType createWorkItemNotificationActionType() { return new WorkItemNotificationActionType(); }
public void setPerAssignee(Boolean value) { PrismForJAXBUtil.setPropertyValue(asPrismContainerValue(), F_PER_ASSIGNEE, value); }
public WorkItemNotificationActionType beginNotify() { WorkItemNotificationActionType value = new WorkItemNotificationActionType(); notify(value); return value; }
@Override public String toString() { return asPrismContainerValue().toString(); }
@Override public int hashCode() { return asPrismContainerValue().hashCode(); }
@XmlElement(name = "perAssignee") public Boolean isPerAssignee() { return PrismForJAXBUtil.getPropertyValue(asPrismContainerValue(), F_PER_ASSIGNEE, Boolean.class); }
@XmlElement(name = "handler") public EventHandlerType getHandler() { return PrismForJAXBUtil.getPropertyValue(asPrismContainerValue(), F_HANDLER, EventHandlerType.class); }