psdi.workflow

Class WorkflowOriginatorRole

  • All Implemented Interfaces:
    CustomRoleInterface


    public class WorkflowOriginatorRole
    extends CustomRoleAdapter
    implements CustomRoleInterface
    This class returns the PersonID of who started the workflow process. It does this by assuming that the MaxRole Mbo is eventually owned by a WFInstance while running. This class will cause an exception when used outside of a workflow instance.
    • Constructor Detail

      • WorkflowOriginatorRole

        public WorkflowOriginatorRole()
    • Method Detail

      • evaluateCustomRole

        public MboRemote evaluateCustomRole(MaxRole roleMbo,
                                            MboRemote currentMbo)
                                     throws MXException,
                                            java.rmi.RemoteException
        Get the workflow originator
        Specified by:
        evaluateCustomRole in interface CustomRoleInterface
        Parameters:
        roleMbo - This is the role which has the custom class name.
        currentMbo - The current mbo.
        Returns:
        This method can return either a PersonRemote or PersonGroupRemote.
        Throws:
        MXException
        java.rmi.RemoteException