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. Instead, a specially formatted URL is used.
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. See the Invoking a Bizweaver Workflow Versago page for information about using this process from Versago.
To initiate another workflow within Bizweaver, use a WebService2 step. The step is configured to use POST (preferred) or GET. When the second workflow is called, the calling workflow will wait until it receives a response from the called workflow. Once a response is received the calling workflow will continue to its next step.
Processes beginning with v2.4 should always use POST. Processes from older versions that used GET should be converted to POST as soon as possible.
A token must be generated in order to use the POST processes described below. Information on configuring a token is found here.
Use caution when connecting multiple workflows in a sequence. You may need to adjust the timeout value on the earlier steps to be sure the processing doesn't continue before the called step(s) have completed their work.
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.
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.
Here is a sample of the full URL. Copy and paste this string as a starting point.
https://MyPortal.MyCompany.com:443/BWService/api/workflow/InvokeWorkFlow
{
"pTaskID":"NN",
"pArguments":
{
"Arg1":"Value1",
"Arg2":"Value2"
}
}
{
"pTaskID":"NN",
"pArguments":{}
}