Package org.tkit.rhpam.quarkus.messaging
Class FailedStepService
- java.lang.Object
-
- org.tkit.rhpam.quarkus.messaging.FailedStepService
-
@ApplicationScoped @Traced public class FailedStepService extends Object
The type Failed step service.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFailedStepService.FailedStepServiceErrorKeys
-
Constructor Summary
Constructors Constructor Description FailedStepService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FailedStepcreateOrUpdateBusinessFailedStep(ProcessStepExecution workItem, ProcessStepExecutionResult executionResult)Create Failed step for a process step that was technically executed ok, but resulted in business errorFailedStepcreateOrUpdateFailedStep(org.eclipse.microprofile.reactive.messaging.Message<String> message)voidemitFailedStepEvent(FailedStep failedStep)FailedStepupdateFailedStep(ProcessStepExecution workItem, String referencedStepName, String resolutionOptions, String resolutionSignalId)
-
-
-
Method Detail
-
createOrUpdateFailedStep
public FailedStep createOrUpdateFailedStep(org.eclipse.microprofile.reactive.messaging.Message<String> message) throws org.hibernate.service.spi.ServiceException
- Throws:
org.hibernate.service.spi.ServiceException
-
emitFailedStepEvent
public void emitFailedStepEvent(FailedStep failedStep) throws RhpamException
- Throws:
RhpamException
-
createOrUpdateBusinessFailedStep
public FailedStep createOrUpdateBusinessFailedStep(ProcessStepExecution workItem, ProcessStepExecutionResult executionResult) throws IOException
Create Failed step for a process step that was technically executed ok, but resulted in business error- Parameters:
workItem- process execution dataexecutionResult- process execution result data- Returns:
- created failed step
- Throws:
IOException- in case of error
-
updateFailedStep
public FailedStep updateFailedStep(ProcessStepExecution workItem, String referencedStepName, String resolutionOptions, String resolutionSignalId) throws org.hibernate.service.spi.ServiceException
- Throws:
org.hibernate.service.spi.ServiceException
-
-