createUpdateConfiguration
This import template allows adding, editing, and deleting:
- Inspection form data.
To insert each of these items, it is necessary to follow the standard documented below.
Java class | |
---|---|
Request | web\wwwroot\ws\java\inspection\CreateUpdateConfigurationRequestType.java |
Return | web\wwwroot\ws\java\inspection\CreateUpdateConfigurationResponseType.java |
Request:
ID # | Required | Description |
---|---|---|
FGOPTION | X | Code of the operation to be performed: 14 - Insert; 15 - Edit; 16 - Insert/Edit. |
IDGENTYPE | X¹ | Inspection form type ID # |
IDCONFIGURATION | X | Inspection form ID # |
IDOBJECT | X¹ | Item/Supply ID # |
IDREVISION | X¹ | Item/Supply revision ID # |
IDPROCESS | X¹ | Process ID # |
IDPROCREVISION | X¹ | Process revision ID # |
IDACTIVITY | X¹ | Process activity ID # |
NMEVALCONFGRUP | X² | Evaluation group name |
IDQUALITYINDEX | X² | Quality index ID # |
FGALLOWEDITWF | Allow editing the receiving flow: 1 - Allow; 2 - Do not allow (default option). | |
IDWORKFLOW | X³ | Inspection flow ID # |
FGBLOCK | Block receiving for this inspection form: 1 - Block 2 - Do not block (default option). | |
FGTYPEFREQUENCE | X⁴ | Frequency type: 1 - Uncontrolled; 2 - Execution date; 3 - Inspect an instance every... (available only when there are processes involved) |
QTFREQUENCE | X⁵ | Frequency/Number of instances |
FGFREQUENCE | X⁵ | Frequency unit: 1 - Days; 2 - Weeks; 3 - Months; 4 - Years. |
DTNEXTEXECUTION | X⁵ | Next execution date |
IDTEAM | X⁵ | Responsible team |
FGINSPFREQ | X⁶ | Inspection frequency: 1 - Skip-lot 2 - Total inspection 3 - No inspection |
NMSKIPTYPE | X⁶ | Skip-lot type name |
NRSEQ | X⁶ | Frequency sequence of the selected skip-lot |
FGINITIALSMP | Control initial sample: 1 - Yes; 2 - No (default option). | |
FGSTATUSINITIALSMP | X⁷ | Sample status: 1 - Blocked; 2 - Initial sample; 3 - Released. |
DTDUEDATE | X⁷ | Deadline |
FGVALIDITYRIA | Control initial sampling validity: 1 - Yes; 2 - No (default option). | |
QTVALIDITYRIA | X⁸ | Initial sampling validity frequency |
FGFREQVALIDITYRIA | X⁸ | Initial sampling validity frequency unit: 1 - Days; 2 - Weeks; 3 - Months; 4 - Inspections |
DSINITIALSMP | Initial sampling comments | |
FGAVGREADING | X² | Register averages/readings: 1 - Register averages; 2 - Register readings. |
FGSAMPLEPLAN | X⁹ | Rule: 1 - Sampling plan; 2 - Sampling table; 3 - Defined size; 4 - Percentage. |
FGDEFAULSAMPLEPLAN | X⁹ | Sampling plan: 1 - Simple; 2 - Double; 3 - Multiple |
IDLEVEL | X⁹ | Inspection level: [01, 02, 03, S1, S2, S3, S4] |
FGSWITCHRULE | X⁹ | Work regime: 1 - Reduced; 2 - Normal; 3 - Tightened. |
VLAQL | X⁹ | AQL: [0.010, 0.015, 0.025, 0.04, 0.65, 0.1, 0.15, 0.25, 0.4, 0.65, 1, 1.5, 2.5, 4, 6.5, 10, 15, 25, 40, 65, 100, 150, 250, 400, 650, 1000] |
IDTABLE | X⁹ | Sampling table ID # |
VLSAMPLESIZE | X⁹ | Sample size |
VLACCEPTABLE | X⁹ | Maximum number/percentage of rejects |
VLPERCENTAGE | X⁹ | Percentage |
info
- X¹ - Mandatory for insertion; ignored for other actions.
- X² - Mandatory for insertion; optional for editing and deletion.
- X³ - Mandatory if editing the inspection flow is not allowed.
- X⁴ - Mandatory for insertion if the form object type allows the frequency to be controlled.
- X⁵ - Mandatory for insertion if the frequency is controlled.
- X⁶ - Mandatory for insertion if the form object type requires the inspection frequency to be entered.
- X⁷ - Mandatory for insertion if the form object type requires the inspection frequency to be entered and the option to control the initial sample is enabled.
- X⁸ - Mandatory for insertion if the form object type requires the inspection frequency to be entered and the options to control initial sample and to control validity are enabled.
- X⁹ - Mandatory if the form object type requires a sampling plan to be entered and if the sampling rule option requires completion.
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:inspection">
<soapenv:Header/>
<soapenv:Body>
<urn:createUpdateConfiguration>
<!--You may enter the following 38 items in any order-->
<urn:FGOPTION>?</urn:FGOPTION>
<urn:IDGENTYPE>?</urn:IDGENTYPE>
<urn:IDCONFIGURATION>?</urn:IDCONFIGURATION>
<urn:IDOBJECT>?</urn:IDOBJECT>
<urn:IDREVISION>?</urn:IDREVISION>
<urn:IDPROCESS>?</urn:IDPROCESS>
<urn:IDPROCREVISION>?</urn:IDPROCREVISION>
<urn:IDACTIVITY>?</urn:IDACTIVITY>
<urn:NMEVALCONFGRUP>?</urn:NMEVALCONFGRUP>
<urn:IDQUALITYINDEX>?</urn:IDQUALITYINDEX>
<urn:FGALLOWEDITWF>?</urn:FGALLOWEDITWF>
<urn:IDWORKFLOW>?</urn:IDWORKFLOW>
<urn:FGBLOCK>?</urn:FGBLOCK>
<urn:FGTYPEFREQUENCE>?</urn:FGTYPEFREQUENCE>
<urn:QTFREQUENCE>?</urn:QTFREQUENCE>
<urn:FGFREQUENCE>?</urn:FGFREQUENCE>
<urn:DTNEXTEXECUTION>?</urn:DTNEXTEXECUTION>
<urn:IDTEAM>?</urn:IDTEAM>
<urn:FGINSPFREQ>?</urn:FGINSPFREQ>
<urn:NMSKIPTYPE>?</urn:NMSKIPTYPE>
<urn:NRSEQ>?</urn:NRSEQ>
<urn:FGINITIALSMP>?</urn:FGINITIALSMP>
<urn:FGSTATUSINITIALSMP>?</urn:FGSTATUSINITIALSMP>
<urn:DTDUEDATE>?</urn:DTDUEDATE>
<urn:FGVALIDITYRIA>?</urn:FGVALIDITYRIA>
<urn:QTVALIDITYRIA>?</urn:QTVALIDITYRIA>
<urn:FGFREQVALIDITYRIA>?</urn:FGFREQVALIDITYRIA>
<urn:DSINITIALSMP>?</urn:DSINITIALSMP>
<urn:FGAVGREADING>?</urn:FGAVGREADING>
<urn:FGSAMPLEPLAN>?</urn:FGSAMPLEPLAN>
<urn:FGDEFAULSAMPLEPLAN>?</urn:FGDEFAULSAMPLEPLAN>
<urn:IDLEVEL>?</urn:IDLEVEL>
<urn:FGSWITCHRULE>?</urn:FGSWITCHRULE>
<urn:VLAQL>?</urn:VLAQL>
<urn:IDTABLE>?</urn:IDTABLE>
<urn:VLSAMPLESIZE>?</urn:VLSAMPLESIZE>
<urn:VLACCEPTABLE>?</urn:VLACCEPTABLE>
<urn:VLPERCENTAGE>?</urn:VLPERCENTAGE>
</urn:createUpdateConfiguration>
</soapenv:Body>
</soapenv:Envelope>
Return:
ID # | Description |
---|---|
return | Returns Status, Code, and Detail ▪ Status can be SUCCESS or FAILURE. ▪ Code returns 1 for success, or 0 for failure. ▪ Detail returns error description in case of failure. |