Create and Add a Step to a Flow Using Gradle
Before you begin
You need:
- Java SE JDK 8
- MarkLogic Server (See Version Compatibility.)
- Gradle 4.6 or later
About this task
A flow must have at least one step. You can create steps in two ways:
- By customizing the example steps. If you created your flow using Gradle, the resulting flow definition file includes an example step for each predefined type of step (ingestion, mapping, matching, merging, mastering). Simply customize these example steps.
- By creating and customizing a step definition using Gradle. Use the Gradle task hubCreateStepDefinition to initialize a step definition, copy the step definition to the flow definition, and customize.
Steps that are configured directly in the flow definition file, as well as steps that use the step definition created by running the Gradle task hubCreateStepDefinition, are equivalent to the custom steps generated by QuickStart. The stepDefType parameter for hubCreateStepDefinition is equivalent to the Custom Step Type field in QuickStart, except -PstepDefType=custom
in the Gradle syntax is equivalent to Custom Step Type being set to Other in QuickStart.
This task describes how to create and customize a step definition using Gradle.
Procedure
What to do next
- Modify your custom module.
- (Optional) To perform other tasks outside the Data Hub space, you can create a custom hook module and add it to a custom hook in the step.