Package org.tkit.rhpam.quarkus.messaging
Class BusinessErrorHandlerStepService
- java.lang.Object
-
- org.tkit.rhpam.quarkus.messaging.BusinessErrorHandlerStepService
-
- All Implemented Interfaces:
ProcessStepService
@ApplicationScoped @Traced public class BusinessErrorHandlerStepService extends Object implements ProcessStepService
-
-
Constructor Summary
Constructors Constructor Description BusinessErrorHandlerStepService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessStepExecutionResultdoExecute(ProcessStepExecution workItem)Execute the process work item.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.tkit.rhpam.quarkus.process.ProcessStepService
provideErrorInformation
-
-
-
-
Method Detail
-
doExecute
public ProcessStepExecutionResult doExecute(ProcessStepExecution workItem) throws org.hibernate.service.spi.ServiceException
Description copied from interface:ProcessStepServiceExecute the process work item.When you want to indicate a negative outcome, handled by the Busiess Error Handler WIH, specify these 3 variables in output:
Constants.FAILED_STEP_ERROR_CODE- for error code,Constants.FAILED_STEP_ERROR_MSG- for error message text,Constants.FAILED_STEP_DEEP_LINK- for backlink to the failed object, e.g. link to Object detail in our UI view,- Specified by:
doExecutein interfaceProcessStepService- Parameters:
workItem- the process work item.- Returns:
- the result parameters for the workflow.
- Throws:
org.hibernate.service.spi.ServiceException- if the method fails.
-
-