Package org.tkit.rhpam.quarkus.process
Class ProcessService
- java.lang.Object
-
- org.tkit.rhpam.quarkus.process.ProcessService
-
@ApplicationScoped @Traced public class ProcessService extends Object
The process service.
-
-
Constructor Summary
Constructors Constructor Description ProcessService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsendMessage(String deploymentId, Long processInstanceId, String messageId, Object data)Sends the message to the process.voidsendSignal(String deploymentId, Long processInstanceId, String signalId, Object data)Sends the signal to the process.StringstartProcess(String deploymentId, String processId, Long referenceBid, String referenceKey, Map<String,Object> data)Starts the process.
-
-
-
Method Detail
-
startProcess
public String startProcess(String deploymentId, String processId, Long referenceBid, String referenceKey, Map<String,Object> data) throws RhpamException
Starts the process.- Parameters:
deploymentId- the deployment ID.processId- the ID of the processreferenceBid- business reference bid to be defined in the step logsreferenceKey- 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
-
-