Search in sources :

Example 1 with CustomActionSpecification

use of co.cask.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, ArtifactRepository artifactRepository, PluginInstantiator pluginInstantiator) {
    Preconditions.checkArgument(action != null, "CustomAction is null.");
    CustomActionSpecification spec = DefaultCustomActionConfigurer.configureAction(action, deployNamespace, artifactId, artifactRepository, pluginInstantiator);
    return new WorkflowActionNode(spec.getName(), spec);
}
Also used : CustomActionSpecification(co.cask.cdap.api.customaction.CustomActionSpecification) WorkflowActionNode(co.cask.cdap.api.workflow.WorkflowActionNode)

Aggregations

CustomActionSpecification (co.cask.cdap.api.customaction.CustomActionSpecification)1 WorkflowActionNode (co.cask.cdap.api.workflow.WorkflowActionNode)1