Class ProcessService


  • @ApplicationScoped
    @Traced
    public class ProcessService
    extends Object
    The process service.
    • Constructor Detail

      • ProcessService

        public ProcessService()
    • Method Detail

      • startProcess

        public String startProcess​(String deploymentId,
                                   String processId,
                                   Object referenceBid,
                                   String referenceKey,
                                   Map<String,​Object> data)
                            throws RhpamException
        Starts the process.
        Parameters:
        deploymentId - the deployment ID.
        processId - the ID of the process
        referenceBid - business reference bid to be defined in the step logs
        referenceKey - the reference key.
        data - the input data for the process.
        Returns:
        the process log GUID.
        Throws:
        RhpamException - if the method fails. ProcessService.ErrorKeys.ERROR_START_PROCESS
      • sendMessage

        public void sendMessage​(String deploymentId,
                                Long processInstanceId,
                                String messageId,
                                Object data)
                         throws RhpamException
        Sends the message to the process.
        Parameters:
        deploymentId - the deployment ID.
        processInstanceId - the process instance ID.
        messageId - the message ID.
        data - the input data.
        Throws:
        RhpamException - if the method fails. ProcessService.ErrorKeys.ERROR_SEND_SIGNAL
      • sendSignal

        public void sendSignal​(String deploymentId,
                               Long processInstanceId,
                               String signalId,
                               Object data)
                        throws RhpamException
        Sends the signal to the process.
        Parameters:
        deploymentId - the deployment ID.
        processInstanceId - the process instance ID.
        signalId - the signal ID.
        data - the input data.
        Throws:
        RhpamException - if the method fails. ProcessService.ErrorKeys.ERROR_SEND_SIGNAL