com.ibm.openpages.api.trigger.oob.lifecycle

Class DefaultLifecycleEventHandler



  • public class DefaultLifecycleEventHandler
    extends DefaultEventHandler
    Handle Lifecycle transition processing depending on attributes specified in the Lifecycle trigger XML Format of field name is [FieldGroup]:[FieldName] using the system names for the field. Format of Enum value is the system name for the drop down value.
    • Constructor Detail

      • DefaultLifecycleEventHandler

        public DefaultLifecycleEventHandler()
    • Method Detail

      • getTransitionsAttributes

        public java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> getTransitionsAttributes()
      • setTransitionsAttributes

        public void setTransitionsAttributes(java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>> transitionsAttributes)
      • handleEvent

        public boolean handleEvent(CreateResourceEvent event)
        Description copied from class: DefaultEventHandler
        HandleEvent() method for CreateResourceEvent type. The DefaultEventHandler always returns false. Override this handleEvent() methods if CreateResourceEvent type is associated with the trigger rule. In a create event handler, the values of the object being saved is modified. Calling IResourceService.saveResource() is not required for TriggerPositionType.PRE.
        Overrides:
        handleEvent in class DefaultEventHandler
        Parameters:
        event - a create resource event to be handled
      • handleEvent

        public boolean handleEvent(UpdateResourceEvent event)
        Description copied from class: DefaultEventHandler
        HandleEvent() method for UpdateResourceEvent type. The DefaultEventHandler always returns false. Override this handleEvent() methods if UpdateResourceEvent type is associated with the trigger rule. In an update event handler, the values of the object being saved is modified. Calling IResourceService.saveResource() is not required.
        Overrides:
        handleEvent in class DefaultEventHandler
        Parameters:
        event - an update resource event to be handled
      • getFieldGroup

        public java.lang.String getFieldGroup()
      • getLifecycleAssigneeFieldName

        public java.lang.String getLifecycleAssigneeFieldName()
      • getLifecycleUpdateAssigneeFieldName

        public java.lang.String getLifecycleUpdateAssigneeFieldName()
      • getLifecycleStageFieldName

        public java.lang.String getLifecycleStageFieldName()
      • getLifecycleTransitionFieldName

        public java.lang.String getLifecycleTransitionFieldName()
      • getLifecycleStatusFieldName

        public java.lang.String getLifecycleStatusFieldName()
      • getLifecycleNameFieldName

        public java.lang.String getLifecycleNameFieldName()
      • setAssignee

        public void setAssignee(IGRCObject object,
                                java.lang.String assigneeValue)
      • getLifecycleAssigneeField

        public IField getLifecycleAssigneeField(IGRCObject object)
      • getTransitionAttribute

        public java.lang.String getTransitionAttribute(IGRCObject object,
                                                       java.lang.String attrKey)
      • getTransitionAttribute

        public java.lang.String getTransitionAttribute(IGRCObject object,
                                                       java.lang.String attrKey,
                                                       boolean useDefault)
      • isInvalidValue

        public boolean isInvalidValue(java.lang.String value)
      • setErrorMessage

        public void setErrorMessage()

Licensed Materials - Property of IBM
OpenPages with Watson (PID: 5725-D51)
© Copyright IBM Corporation 2013, 2020. All Rights Reserved.
US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.