Class DeleteHistoryJobCmd
- java.lang.Object
-
- org.flowable.job.service.impl.cmd.DeleteHistoryJobCmd
-
- All Implemented Interfaces:
Serializable,Command<Object>
public class DeleteHistoryJobCmd extends Object implements Command<Object>, Serializable
- Author:
- Tijs Rademakers
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringhistoryJobIdprotected JobServiceConfigurationjobServiceConfiguration
-
Constructor Summary
Constructors Constructor Description DeleteHistoryJobCmd(String historyJobId, JobServiceConfiguration jobServiceConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectexecute(CommandContext commandContext)protected HistoryJobEntitygetJobToDelete(CommandContext commandContext)protected voidsendCancelEvent(HistoryJobEntity jobToDelete)
-
-
-
Field Detail
-
jobServiceConfiguration
protected JobServiceConfiguration jobServiceConfiguration
-
historyJobId
protected String historyJobId
-
-
Constructor Detail
-
DeleteHistoryJobCmd
public DeleteHistoryJobCmd(String historyJobId, JobServiceConfiguration jobServiceConfiguration)
-
-
Method Detail
-
execute
public Object execute(CommandContext commandContext)
-
sendCancelEvent
protected void sendCancelEvent(HistoryJobEntity jobToDelete)
-
getJobToDelete
protected HistoryJobEntity getJobToDelete(CommandContext commandContext)
-
-