public class StatelessJob<Match extends IPatternMatch> extends Job<Match>
Job that uses an Consumer
on the match of the activation when executed.| Constructor and Description |
|---|
StatelessJob(CRUDActivationStateEnum activationStateEnum,
java.util.function.Consumer<Match> matchProcessor)
Creates a stateless job for the given state and processor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute(Activation<? extends Match> activation,
Context context)
Executes the action on the activation using the supplied context.
|
java.util.function.Consumer<Match> |
getMatchProcessor() |
protected void |
handleError(Activation<? extends Match> activation,
java.lang.Exception exception,
Context context)
Called if the
Job.execute(org.eclipse.viatra.transformation.evm.api.Activation<? extends EventAtom>, org.eclipse.viatra.transformation.evm.api.Context) method has thrown an exception to allow jobs to handle their own errors. |
getActivationStatepublic StatelessJob(CRUDActivationStateEnum activationStateEnum, java.util.function.Consumer<Match> matchProcessor)
public java.util.function.Consumer<Match> getMatchProcessor()
protected void execute(Activation<? extends Match> activation, Context context)
Jobexecute in class Job<Match extends IPatternMatch>protected void handleError(Activation<? extends Match> activation, java.lang.Exception exception, Context context)
JobJob.execute(org.eclipse.viatra.transformation.evm.api.Activation<? extends EventAtom>, org.eclipse.viatra.transformation.evm.api.Context) method has thrown an exception to allow jobs to handle their own errors.handleError in class Job<Match extends IPatternMatch>