Class ApprovalPolicyActionType
- java.lang.Object
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.PolicyActionType
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.ApprovalPolicyActionType
-
- All Implemented Interfaces:
Containerable
,DebugDumpable
,Serializable
,Cloneable
public class ApprovalPolicyActionType extends PolicyActionType implements Serializable, Cloneable, Containerable
Approval action. The operation will be suspended and the approval workflow will be started. If the workflow ends with success the operation will proceed. If the workflow ends with an error the operation will also end with an error.Java class for ApprovalPolicyActionType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ApprovalPolicyActionType"> <complexContent> <extension base="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}PolicyActionType"> <sequence> <element name="processSpecification" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}WfProcessSpecificationType" minOccurs="0"/> <element name="compositionStrategy" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}ApprovalCompositionStrategyType" minOccurs="0"/> <element name="approvalDisplayName" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}LocalizableMessageTemplateType" minOccurs="0"/> <choice> <sequence> <element name="approverRelation" type="{http://www.w3.org/2001/XMLSchema}QName" maxOccurs="unbounded" minOccurs="0"/> <element name="approverRef" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}ObjectReferenceType" maxOccurs="unbounded" minOccurs="0"/> <element name="approverExpression" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}ExpressionType" maxOccurs="unbounded" minOccurs="0"/> </sequence> <element name="approvalSchema" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}ApprovalSchemaType" minOccurs="0"/> <element name="approvalProcess" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> </choice> </sequence> </extension> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static QName
COMPLEX_TYPE
static ItemName
F_APPROVAL_DISPLAY_NAME
static ItemName
F_APPROVAL_PROCESS
static ItemName
F_APPROVAL_SCHEMA
static ItemName
F_APPROVER_EXPRESSION
static ItemName
F_APPROVER_REF
static ItemName
F_APPROVER_RELATION
static ItemName
F_COMPOSITION_STRATEGY
static ItemName
F_PROCESS_SPECIFICATION
-
Fields inherited from class com.evolveum.midpoint.xml.ns._public.common.common_3.PolicyActionType
F_CONDITION, F_DESCRIPTION, F_DOCUMENTATION, F_NAME
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description ApprovalPolicyActionType()
ApprovalPolicyActionType(PrismContext prismContext)
-
Method Summary
-
Methods inherited from class com.evolveum.midpoint.xml.ns._public.common.common_3.PolicyActionType
getCondition, getDescription, getDocumentation, getId, getName, setCondition, setDescription, setDocumentation, setId, setName
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.prism.Containerable
cloneWithoutId, debugDump
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
-
-
-
Field Detail
-
COMPLEX_TYPE
public static final QName COMPLEX_TYPE
-
F_PROCESS_SPECIFICATION
public static final ItemName F_PROCESS_SPECIFICATION
-
F_COMPOSITION_STRATEGY
public static final ItemName F_COMPOSITION_STRATEGY
-
F_APPROVAL_DISPLAY_NAME
public static final ItemName F_APPROVAL_DISPLAY_NAME
-
F_APPROVER_RELATION
public static final ItemName F_APPROVER_RELATION
-
F_APPROVER_REF
public static final ItemName F_APPROVER_REF
-
F_APPROVER_EXPRESSION
public static final ItemName F_APPROVER_EXPRESSION
-
F_APPROVAL_SCHEMA
public static final ItemName F_APPROVAL_SCHEMA
-
F_APPROVAL_PROCESS
public static final ItemName F_APPROVAL_PROCESS
-
-
Constructor Detail
-
ApprovalPolicyActionType
public ApprovalPolicyActionType()
-
ApprovalPolicyActionType
public ApprovalPolicyActionType(PrismContext prismContext)
-
-
Method Detail
-
asPrismContainerValue
public PrismContainerValue asPrismContainerValue()
- Specified by:
asPrismContainerValue
in interfaceContainerable
- Overrides:
asPrismContainerValue
in classPolicyActionType
-
setupContainerValue
public void setupContainerValue(PrismContainerValue containerValue)
Description copied from interface:Containerable
Setup value to the containerable representation. This is used to after (empty) containerable is created to initialize it with a correct prism container value. Note: This method DOES NOT change the container value parent.- Specified by:
setupContainerValue
in interfaceContainerable
- Overrides:
setupContainerValue
in classPolicyActionType
-
toString
public String toString()
- Overrides:
toString
in classPolicyActionType
-
equals
public boolean equals(Object object)
- Overrides:
equals
in classPolicyActionType
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classPolicyActionType
-
end
public <X> X end()
- Overrides:
end
in classPolicyActionType
-
getProcessSpecification
public WfProcessSpecificationType getProcessSpecification()
-
setProcessSpecification
public void setProcessSpecification(WfProcessSpecificationType value)
-
getCompositionStrategy
public ApprovalCompositionStrategyType getCompositionStrategy()
-
setCompositionStrategy
public void setCompositionStrategy(ApprovalCompositionStrategyType value)
-
getApprovalDisplayName
public LocalizableMessageTemplateType getApprovalDisplayName()
-
setApprovalDisplayName
public void setApprovalDisplayName(LocalizableMessageTemplateType value)
-
getApproverRef
public List<ObjectReferenceType> getApproverRef()
-
createApproverRefList
public List<ObjectReferenceType> createApproverRefList()
-
getApproverExpression
public List<ExpressionType> getApproverExpression()
-
createApproverExpressionList
public List<ExpressionType> createApproverExpressionList()
-
getApprovalSchema
public ApprovalSchemaType getApprovalSchema()
-
setApprovalSchema
public void setApprovalSchema(ApprovalSchemaType value)
-
getApprovalProcess
public String getApprovalProcess()
-
setApprovalProcess
public void setApprovalProcess(String value)
-
processSpecification
public ApprovalPolicyActionType processSpecification(WfProcessSpecificationType value)
-
beginProcessSpecification
public WfProcessSpecificationType beginProcessSpecification()
-
compositionStrategy
public ApprovalPolicyActionType compositionStrategy(ApprovalCompositionStrategyType value)
-
beginCompositionStrategy
public ApprovalCompositionStrategyType beginCompositionStrategy()
-
approvalDisplayName
public ApprovalPolicyActionType approvalDisplayName(LocalizableMessageTemplateType value)
-
beginApprovalDisplayName
public LocalizableMessageTemplateType beginApprovalDisplayName()
-
approverRelation
public ApprovalPolicyActionType approverRelation(QName value)
-
approverRef
public ApprovalPolicyActionType approverRef(ObjectReferenceType value)
-
approverRef
public ApprovalPolicyActionType approverRef(String oid, QName type)
-
approverRef
public ApprovalPolicyActionType approverRef(String oid, QName type, QName relation)
-
beginApproverRef
public ObjectReferenceType beginApproverRef()
-
approverExpression
public ApprovalPolicyActionType approverExpression(ExpressionType value)
-
beginApproverExpression
public ExpressionType beginApproverExpression()
-
approvalSchema
public ApprovalPolicyActionType approvalSchema(ApprovalSchemaType value)
-
beginApprovalSchema
public ApprovalSchemaType beginApprovalSchema()
-
approvalProcess
public ApprovalPolicyActionType approvalProcess(String value)
-
name
public ApprovalPolicyActionType name(String value)
- Overrides:
name
in classPolicyActionType
-
description
public ApprovalPolicyActionType description(String value)
- Overrides:
description
in classPolicyActionType
-
documentation
public ApprovalPolicyActionType documentation(String value)
- Overrides:
documentation
in classPolicyActionType
-
condition
public ApprovalPolicyActionType condition(ExpressionType value)
- Overrides:
condition
in classPolicyActionType
-
beginCondition
public ExpressionType beginCondition()
- Overrides:
beginCondition
in classPolicyActionType
-
id
public ApprovalPolicyActionType id(Long value)
- Overrides:
id
in classPolicyActionType
-
clone
public ApprovalPolicyActionType clone()
- Overrides:
clone
in classPolicyActionType
-
-