Search in sources :

Example 1 with CustomActionSpecification

use of io.cdap.cdap.api.customaction.CustomActionSpecification in project cdap by caskdata.

the class WorkflowNodeCreator method createWorkflowCustomActionNode.

static WorkflowNode createWorkflowCustomActionNode(CustomAction action, Id.Namespace deployNamespace, Id.Artifact artifactId, PluginFinder pluginFinder, PluginInstantiator pluginInstantiator, @Nullable AppDeploymentRuntimeInfo runtimeInfo, FeatureFlagsProvider featureFlagsProvider) {
    Preconditions.checkArgument(action != null, "CustomAction is null.");
    CustomActionSpecification spec = DefaultCustomActionConfigurer.configureAction(action, deployNamespace, artifactId, pluginFinder, pluginInstantiator, runtimeInfo, featureFlagsProvider);
    return new WorkflowActionNode(spec.getName(), spec);
}
Also used : CustomActionSpecification(io.cdap.cdap.api.customaction.CustomActionSpecification) WorkflowActionNode(io.cdap.cdap.api.workflow.WorkflowActionNode)

Aggregations

CustomActionSpecification (io.cdap.cdap.api.customaction.CustomActionSpecification)1 WorkflowActionNode (io.cdap.cdap.api.workflow.WorkflowActionNode)1