This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
bw2:bizweaver_api [2020/12/15 12:32] akoehler created |
bw2:bizweaver_api [2021/02/05 11:58] (current) akoehler |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| Bizweaver has its own API that can be used in a variety of ways. This is a directly-called API and does not currently use REST as the communication mechanism. | Bizweaver has its own API that can be used in a variety of ways. This is a directly-called API and does not currently use REST as the communication mechanism. | ||
| - | The two most common uses are to invoke a Bizweaver workflow from a Versago form or report, and to have one workflow call another workflow. | + | The two most common uses are to invoke a Bizweaver workflow from a Versago form or report and to have one workflow call another workflow. |
| - | To initiate another workflow within Bizweaver, use a **//[[bw: | + | To initiate another workflow within Bizweaver, use a **//[[bw2: |
| <WRAP center round tip 80%> | <WRAP center round tip 80%> | ||
| Line 10: | Line 10: | ||
| </ | </ | ||
| <WRAP center round important 80%> | <WRAP center round important 80%> | ||
| - | A token must be generated in order to use the POST processes described below. | + | A token must be generated in order to use the POST processes described below. |
| </ | </ | ||
| <WRAP center round important 80%> | <WRAP center round important 80%> | ||
| - | Use caution when connecting multiple workflows in a sequence. | + | Use caution when connecting multiple workflows in a sequence. |
| </ | </ | ||
| Line 20: | Line 20: | ||
| When a Bizweaver workflow is called (initiated) using POST, the configuration of the WebService2 tool involves two sections: the URI and the Body. An example is shown below. | When a Bizweaver workflow is called (initiated) using POST, the configuration of the WebService2 tool involves two sections: the URI and the Body. An example is shown below. | ||
| - | {{ :bw:webservice_bizweaverpost.png? | + | {{ :bw2:bwapiws.png |}} |
| * Change the **YourServer: | * Change the **YourServer: | ||
| - | * Remember that you will need to use HTTP or HTTPS depending on your environment. | + | * Remember that you will need to use HTTP or HTTPS, depending on your environment. |
| - | * The rest of the URI, __/ | + | * The rest of the URI, __/ |
| * Select POST from the " | * Select POST from the " | ||
| * Enter " | * Enter " | ||
| Line 34: | Line 34: | ||
| <WRAP center round tip 60%> | <WRAP center round tip 60%> | ||
| - | Finding the proper port needed will be in your IIS Manager which can be found in Start -> Windows Administrative Tools -> Internet Information Services (IIS) Manager. There will be a drop down for your server, then you will see Sites drop down and then Versago click on Versago and on the right panel there will be the proper port needed to use in the API call. | + | Finding the proper port needed will be in your IIS Manager, which can be found in Start -> Windows Administrative Tools -> Internet Information Services (IIS) Manager. There will be a drop-down for your server; then you will see Sites drop-down, and then Versago click on Versago, and on the right panel, there will be the proper port needed to use in the API call. |
| </ | </ | ||
| Line 56: | Line 56: | ||
| * **NN** is the ID of the workflow being called. | * **NN** is the ID of the workflow being called. | ||
| * **Arguments** (parameters) are any values being passed to the workflow being called. | * **Arguments** (parameters) are any values being passed to the workflow being called. | ||
| - | * Arguments are always sent in pairs. | + | * Arguments are always sent in pairs. |
| * The argument (Arg1, Arg2, etc.) is the variable name expected by the workflow being called. | * The argument (Arg1, Arg2, etc.) is the variable name expected by the workflow being called. | ||
| * Variable names are case-sensitive. | * Variable names are case-sensitive. | ||
| Line 62: | Line 62: | ||
| * Text and dates are enclosed in double-quotes. | * Text and dates are enclosed in double-quotes. | ||
| * Numeric values do not require double-quotes. | * Numeric values do not require double-quotes. | ||
| - | * " | + | * " |
| <code json> | <code json> | ||