invoke

This command is deprecated. You can use the adapter call command instead. The invoke command starts a procedure for a specified adapter on the MobileFirst Server.

Syntax

mfp invoke [<adapter>:<procedure>[\"<json array>\"|--file|-f <file path>]]

Parameters

<adapter>
The name of the adapter you are invoking.
<procedure>
The adapter's procedure that you are invoking.
<json array>
JSON array you are passing to the adapter's procedure.
--file|-f <file path>
File path to the JSON array file.

Usage

Pass the arguments as a comma-separated list. If you enter the command with no arguments, you are prompted for an adapter and procedure, based on what is available in the current working directory of your project.
  • Interactive: $ mfp invoke, then follow the prompts by using the arrow keys.
  • Direct with no parameters: $ mfp invoke adapterName:function.
  • Direct with a JSON array parameter: $ mfp invoke adapterName:function [\"string\", 2, true].
  • Direct with a JSON file parameter: $ mfp invoke adapterName:function --file ./myArts.json.