com.ibm.tivoli.maximo.script

Class ScriptCustomRole

    • Constructor Detail

      • ScriptCustomRole

        public ScriptCustomRole()
    • Method Detail

      • hasInvokedScript

        public final boolean hasInvokedScript(java.util.Map context)
      • evaluateCustomRole

        public MboRemote evaluateCustomRole(MaxRole roleMbo,
                                            MboRemote mbo)
                                     throws MXException,
                                            java.rmi.RemoteException
        Description copied from interface: CustomRoleInterface
        Determines the Person or PersonGroup for a role. The value returned is treated as if the MaxRole attribute PersonID or PersonGroup had this value. If a PersonGroup is returned, the final output is affected by the IsBroadcast flag
        Parameters:
        roleMbo - This is the role which has the custom class name.
        mbo - The current mbo.
        Returns:
        This method can return either a PersonRemote or PersonGroupRemote.
        Throws:
        MXException
        java.rmi.RemoteException
      • evaluateToEmail

        public java.lang.String[] evaluateToEmail(MaxRole roleMbo,
                                                  MboRemote mbo)
                                           throws MXException,
                                                  java.rmi.RemoteException
        Description copied from class: CustomRoleAdapter
        Automatically creates an email array from what's returned from the method evaluateCustomRole.
        Specified by:
        evaluateToEmail in interface CustomRoleInterface
        Overrides:
        evaluateToEmail in class CustomRoleAdapter
        Parameters:
        roleMbo - This is the role which has the custom class name.
        mbo - The current mbo.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.common.role.CustomRoleInterface#evaluateToEmail(psdi.common.role.MaxRoleRemote)