Related Topics
REST Custom Variables
Custom variables in this section of the documentation can be used to customize a variety of settings associated with using a Business Value to return data from a REST data source.
A string variable that determines the default format for results from a REST web service call by a Business Value. The default value is "XML".
Example
public override void SetSystemVars(BPLogix.WorkflowDirector.SDK.bp bp)
{
// Set default REST returns as XML
bp.Vars.DefaultBVRestAccept = "XML";
}
A string variable that determines the default method for returning results from a REST web service call by a Business Value. The default value is "POST".
Example
public override void SetSystemVars(BPLogix.WorkflowDirector.SDK.bp bp)
{
// Set default REST return method
bp.Vars.DefaultBVRestMethod = "POST";
}
A string variable that determines the default REST Content Type for a web service call by a Business Value. The default value is "application/XML".
Example
public override void SetSystemVars(BPLogix.WorkflowDirector.SDK.bp bp)
{
// Set default REST content type
bp.Vars.DefaultBVRestContentType = "application/XML";
}
This Custom Variable implements an Add method that enables you to specify custom REST HTTP headers for a web service call by a Business Value.
Example
public override void SetSystemVars(BPLogix.WorkflowDirector.SDK.bp bp)
{
// Add REST header
bp.Vars.DefaultBVRestHeaders.Add(new NameValue("Name", "Value"));
}
This Custom Variable enables you to specify the default network credentials to supply to a REST web service call by a Business Value.
Example
public override void SetSystemVars(BPLogix.WorkflowDirector.SDK.bp bp)
{
// Default REST credentials
bp.Vars.DefaultBVRestCredentials =
new System.Net.NetworkCredential("UserID","password");
}
Documentation Feedback and Questions
If you notice some way that this document can be improved, we're happy to hear your suggestions. Similarly, if you can't find an answer you're looking for, ask it via feedback. Simply click on the button below to provide us with your feedback or ask a question. Please remember, though, that not every issue can be addressed through documentation. So, if you have a specific technical issue with Process Director, please open a support ticket.