/** * Creates instance which will be used to initialize, run, and destroy the custom action. * @param customActionContext an instance of context * @param instantiator to instantiates the custom action class * @param classLoader used to load the custom action class * @throws Exception when failed to instantiate the custom action */ CustomActionExecutor(BasicCustomActionContext customActionContext, InstantiatorFactory instantiator, ClassLoader classLoader) throws Exception { this.customActionContext = customActionContext; this.customAction = createCustomAction(customActionContext, instantiator, classLoader); }
secureStoreManager, messagingService, metadataReader, metadataPublisher); customActionExecutor = new CustomActionExecutor(context, instantiator, classLoader); status.put(node.getNodeId(), node); workflowStateWriter.addWorkflowNodeState(workflowRunId, Throwable failureCause = null; try { customActionExecutor.execute(); } catch (Throwable t) { failureCause = t;
metadataReader, metadataPublisher, namespaceQueryAdmin); customActionExecutor = new CustomActionExecutor(context, instantiator, classLoader); status.put(node.getNodeId(), node); workflowStateWriter.addWorkflowNodeState(workflowRunId, Throwable failureCause = null; try { customActionExecutor.execute(); } catch (Throwable t) { failureCause = t;
/** * Creates instance which will be used to initialize, run, and destroy the custom action. * @param customActionContext an instance of context * @param instantiator to instantiates the custom action class * @param classLoader used to load the custom action class * @throws Exception when failed to instantiate the custom action */ CustomActionExecutor(BasicCustomActionContext customActionContext, InstantiatorFactory instantiator, ClassLoader classLoader) throws Exception { this.customActionContext = customActionContext; this.customAction = createCustomAction(customActionContext, instantiator, classLoader); }