Flow

doohickey flow allows you to interact with flow instances in your OIH environment. These flows pass data between systems.

Arguments

doohickey flow accepts one argument - an alias for the flow instance

Deploy

doohickey flow deploy will instantiate an instance of a flow from a selected template. Before you can run this command, your integration project must already contain at least one template. The deploy command is used for both creating a flow instance and subsequent updates to that flow instance.

flagstypedescription
--environment (-e)stringTarget OIH environment
--tenant (-t)stringTarget tenant to deploy the flow instance
--url (-U)stringBase URL for OIH flow repository
--start (-s)booleanIndicate if flow should be started after deployment
--forceCreate (-c)booleanForce creation of a new flow instance even if it already exists in current environment and tenant. A new ID will be associated with alias.
--templatestringName of template associated with flow instance
--configFile (-C)stringFile path to a JSON configuration object for insertion into flow instance

Delete

doohickey flow delete will remove a component from both your local integration environment and OIH.

flagstypedescription
--environment (-e)stringTarget OIH environment
--tenant (-t)stringTarget tenant to deploy the flow instance
--url (-U)stringBase URL for OIH flow repository

Start

doohickey flow start will activate a flow instance and allow data to start moving through it. If the flow contains any global components that are not currently active, the CLI will return the name and ID of these components to you so they too can be activated.

flagstypedescription
--environment (-e)stringTarget OIH environment
--tenant (-t)stringTarget tenant to deploy the flow instance
--url (-U)stringBase URL for OIH flow repository
--templatestringName of template associated with flow instance

Status

doohickey flow status will return the deployment status of a flow.

When deployed through Doohickey Cloud, a flow is a combination of a template and an integration configuration. Thus to view the status of a deployed flow you must specify both the template and the integration configuration, which can be specified by either the alias or the id.

Note that this command is not relevant for flows deployed directly to Open Integration Hub.

flagstypedescription
--templatestringThe alias of the template
--templateIdstringThe id of the template
--integrationstringThe alias of the integration
--integrationIdstringThe id of the integration

For example, to retrieve the status of the flow created by a template with the alias of my_template and an integration configuration with the alias my_integration, run the command doohickey flow status --template my_template --integration my_integration.

The result will be something like this:

{
  "id": "61f69022e379c6062a0c6e2b",
  "status": "success",
  "templateId": "2UMP5C4CYY4K8SEDTVBYDX1D77",
  "integrationId": "FIZ4NRB614T8DQRTAJNP568N4B",
  "message": "flow 61f69022e379c6062a0c6e2b processed"
}

Stop

doohickey flow stop will deactivate a flow instance and prevent further data from moving through it. This will not affect any global components associated with the flow instance.

flagstypedescription
--environment (-e)stringTarget OIH environment
--tenant (-t)stringTarget tenant to deploy the flow instance
--url (-U)stringBase URL for OIH flow repository
--templatestringName of template associated with flow instance

View

doohickey flow view will allow you to view:

  • All flows currently in the OIH environment
  • A single flow in the OIH environment
  • A template output without having to deploy to OIH
flagstypedescription
--environment (-e)stringTarget OIH environment
--id (-i)stringID associated with a flow instance
--tenant (-t)stringTarget tenant to deploy the flow instance
--verbose (-v)booleanFlag to display additional information about flow - (Only available on view all flows)
--templatestringName of template associated with flow instance
--configFile (-C)stringFile path to a JSON configuration object for insertion into flow instance

View All Flows

To view all flow instances in an OIH environment, run the command doohickey flow view and OIH will return a limited amount of information about all the flows. There is a --verbose flag that can be used to display more information.

View a Single Flow

To view a single flow instance in an OIH environment, run the command doohickey flow view myFlowAlias, replacing myFlowAlias with the alias of the flow you would like to view. OIH will retrieve that flows current state and return it to you.

View a Generated Template

To preview what a flow would look like before officially deploying it, run the command doohickey flow view --template myTemplateAlias replacing myTemplateAlias with the name of the template you want to see. A flow JSON will be generated and returned to you.