ValidateDataGroup
Workflow Manager 2020
The ValidateDataGroup method is called when a user clicks the Next button on the initial data entry screen of a Workflow Request. Workflow Manager also calls this event when the user clicks the Submit button on steps that collect a data group later in the workflow.
Syntax
This method has the following syntax:
ValidateDataGroup(string strAppId, ref string strAppXMLInfo)
Parameters
This method implements the following parameters:
Parameter |
Description |
strAppId |
Application ID of the current workflow request. |
strAppXMLInfo |
XML formatted string for the current data group. |
Example of strAppXMLInfo for ValidateDataGroup
The following is an example of a strAppXMLInfo string for ValidateDataGroup, with a returned message.
<ApplicationInfo>
<CompanyName>Flexera</CompanyName>
<AppId>d037b0db-8f09-430c-84c6-abb8413bf745</AppId>
<AppSName>Plugin Wor</AppSName>
<AppLName>Plugin Workflow</AppLName>
<UserName>admin@servicer.com</UserName>
<StepID>6391226d-aead-48b0-9942-24254364e163</StepID>
<PhaseID>758d8dc4-ff9e-4a28-9b95-808a47469ec6</PhaseID>
<StepName>Step1</StepName>
<StepType>0</StepType>
<DataGroups DataGroupName="DataGroup1">
<DataElement>
<DataElementId>97a825fb-35de-43ba-9d31-a3a99da1b81f</DataElementId>
<DataElementName>Element1</DataElementName>
<DataElementValue>asdf</DataElementValue>
<Message>This data element Ram should be less than 10GB</Message>
<IsValid>false</IsValid>
</DataElement>
</DataGroups>
</ApplicationInfo>
Return Values
The ValidateDataGroup event returns the following:
• | True / False—Boolean (True/False) value to indicate whether all of the data values are valid. |
• | Messages—A set of error messages (strings) to display on the screen. |
If ValidateDataGroup returns a False value to indicate that a data element is invalid, Workflow Manager does not advance to the next screen.
See Also