@Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface ProcessEngineComponent
<service-task camunda:expression = "myBean" id = "confirm-receipt" />
This is a state that will be entered from Camunda Platform and execution will flow through to the bean
registered in the context as "myBean." To subscribe to that, a POJO need only implement
(optionally) ProcessEngineComponent
and, on a method, add
State
to indicate that the method in particular is
tasked with responding to a state. If applied to a bean and there are no org.camunda.bpm.engine.annotations.ProcessEngineComponent
annotations present, then one option might be to automatically enlist all public methods
as handlers for states whose IDs or names are inferred from the method name:
public void confirmReceipt(..)
would be treated the same as
@State( "confirm-receipt") public void confirmReceipt (..)
,Modifier and Type | Optional Element and Description |
---|---|
String |
processKey |
public abstract String processKey
Copyright © 2021. All rights reserved.