Class GroovyDryRunServiceImpl
java.lang.Object
ch.tocco.nice2.scripting.impl.actions.GroovyDryRunServiceImpl
- All Implemented Interfaces:
GroovyDryRunService
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.scripting.impl.actions.GroovyDryRunService
GroovyDryRunService.DryRunMessage
-
Constructor Summary
ConstructorDescriptionGroovyDryRunServiceImpl
(Context context, PersistenceService persistenceService, ScriptListenerService scriptListenerService, EntityExplorerActionSelectionService selectionService, TextResources textResources, ScriptTaskRunner scriptTaskRunner) -
Method Summary
Modifier and TypeMethodDescriptiondryRunBatchJob
(EntityExplorerActionSelection selection) dryRunListener
(EntityExplorerActionSelection selection, String condition) Execute the selected Dynamic_listener entity in a 'rollback transaction' (seeTransactionControl.isRollbackTransaction()
.
-
Constructor Details
-
GroovyDryRunServiceImpl
public GroovyDryRunServiceImpl(Context context, PersistenceService persistenceService, ScriptListenerService scriptListenerService, EntityExplorerActionSelectionService selectionService, TextResources textResources, ScriptTaskRunner scriptTaskRunner)
-
-
Method Details
-
dryRunListener
public List<GroovyDryRunService.DryRunMessage> dryRunListener(EntityExplorerActionSelection selection, String condition) Description copied from interface:GroovyDryRunService
Execute the selected Dynamic_listener entity in a 'rollback transaction' (seeTransactionControl.isRollbackTransaction()
.- Specified by:
dryRunListener
in interfaceGroovyDryRunService
- Parameters:
selection
- the listener to test (exactly one)condition
- a tql condition which should result in exactly one entity that is given as input to the listener- Returns:
- the script report as string
-
dryRunBatchJob
public List<GroovyDryRunService.DryRunMessage> dryRunBatchJob(EntityExplorerActionSelection selection) - Specified by:
dryRunBatchJob
in interfaceGroovyDryRunService
-