public class StatelessJob<Match extends IPatternMatch> extends Job<Match>
Job
that uses an IMatchProcessor
on the match of the activation when executed.Constructor and Description |
---|
StatelessJob(CRUDActivationStateEnum activationStateEnum,
IMatchProcessor<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.
|
IMatchProcessor<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. |
getActivationState
public StatelessJob(CRUDActivationStateEnum activationStateEnum, IMatchProcessor<Match> matchProcessor)
public IMatchProcessor<Match> getMatchProcessor()
protected void execute(Activation<? extends Match> activation, Context context)
Job
execute
in class Job<Match extends IPatternMatch>
protected void handleError(Activation<? extends Match> activation, java.lang.Exception exception, Context context)
Job
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.handleError
in class Job<Match extends IPatternMatch>