createSupplyType
This method allows creating/editing:
- Data of a supply type.
To insert each of these items, it is necessary to follow the standard documented below.
Java class | |
---|---|
Request | web\wwwroot\ws\java\supply\CreateSupplyTypeRequestType.java |
Return | web\wwwroot\ws\java\supply\CreateSupplyTypeResponseType.java |
Request:
ID # | Required | Description |
---|---|---|
IDOBJECTTYPE | X | Supply type ID # |
NMOBJECTTYPE | X | Supply type name |
FGUSEREVISIONOBJTYPE | X | Flag to identify whether the supply will have a revision: 1 - It will have; 2 - It will not have. |
IDMASK | Mask ID # | |
IDOBJECTTYPEOWNER | Upper level supply type | |
FGEDITID | Revision ID #. 1 - Text; 2 - Numeric; 3 - Customized; Will be required if the FGUSEREVISIONOBJTYPE is 1 | |
IDREVISIONROUTEOBJTYPE | Route ID # | |
IDPROCESSOBJTYPE | Activity ID # | |
FGREVIDOBJTYPE | Revision ID #. Will be required if the FGUSEREVISIONOBJTYPE is 1 | |
FGTYPECYCLEOBJTYPE | Revision cycle: 1 - Numeric; 2 - Text | |
FGREVRETENTIONMODEOBJTYPE | Retention frequency of obsolete revisions. Will be required if the FGUSEREVISIONOBJTYPE is 1; | |
FGTYPEUPDATEOBJTYPE | Change: Numeric pattern; | |
FGREVAPPROVALMODEOBJTYPE | Approval type: 1 - Incremental; 2 - Circular. | |
FGREVRELEASEMODEOBJTYPE | Closure type: 1 - Automatic; 2 - Manual. | |
FGREVELABCLAUSEOBJTYPE | Acceptance of revision in the draft step. Will be required if the FGUSEREVISIONOBJTYPE is 1 | |
FGREVCONSCLAUSEOBJTYPE | Acceptance of revision in the review step. Will be required if the FGUSEREVISIONOBJTYPE is 1 | |
FGREVAPROVCLAUSEOBJTYPE | Acceptance of revision in the approval step. Will be required if the FGUSEREVISIONOBJTYPE is 1 | |
FGREVHOMOLOGCLAUSEOBJTYPE | Revision release type: 1 - AND 2 - OR | |
FGEXPLANATIONOBJTYPE | Mandatory to enter revision reason (when starting): 1 - Mandatory to enter, 2 or NULL - Not mandatory to enter. |
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sp">
<soapenv:Header/>
<soapenv:Body>
<urn:createSupplyType>
<!--You may enter the following 22 items in any order-->
<urn:IDOBJECTTYPE>?</urn:IDOBJECTTYPE>
<urn:NMOBJECTTYPE>?</urn:NMOBJECTTYPE>
<urn:IDOBJECTTYPEOWNER>?</urn:IDOBJECTTYPEOWNER>
<urn:IDMASK>?</urn:IDMASK>
<urn:FGEDITID>?</urn:FGEDITID>
<urn:FGUSEREVISIONOBJTYPE>?</urn:FGUSEREVISIONOBJTYPE>
<urn:FGTYPEREVISIONOBJTYPE>?</urn:FGTYPEREVISIONOBJTYPE>
<urn:FGREVROUTETYPEOBJTYPE>?</urn:FGREVROUTETYPEOBJTYPE>
<urn:IDREVISIONROUTEOBJTYPE>?</urn:IDREVISIONROUTEOBJTYPE>
<urn:IDPROCESSOBJTYPE>?</urn:IDPROCESSOBJTYPE>
<urn:FGREVIDOBJTYPE>?</urn:FGREVIDOBJTYPE>
<urn:FGTYPECYCLEOBJTYPE>?</urn:FGTYPECYCLEOBJTYPE>
<urn:QTREVRETENTIONOBJTYPE>?</urn:QTREVRETENTIONOBJTYPE>
<urn:FGREVRETENTIONMODEOBJTYPE>?</urn:FGREVRETENTIONMODEOBJTYPE>
<urn:FGTYPEUPDATEOBJTYPE>?</urn:FGTYPEUPDATEOBJTYPE>
<urn:FGREVAPPROVALMODEOBJTYPE>?</urn:FGREVAPPROVALMODEOBJTYPE>
<urn:FGREVRELEASEMODEOBJTYPE>?</urn:FGREVRELEASEMODEOBJTYPE>
<urn:FGREVELABCLAUSEOBJTYPE>?</urn:FGREVELABCLAUSEOBJTYPE>
<urn:FGREVCONSCLAUSEOBJTYPE>?</urn:FGREVCONSCLAUSEOBJTYPE>
<urn:FGREVAPROVCLAUSEOBJTYPE>?</urn:FGREVAPROVCLAUSEOBJTYPE>
<urn:FGREVHOMOLOGCLAUSEOBJTYPE>?</urn:FGREVHOMOLOGCLAUSEOBJTYPE>
<urn:FGEXPLANATIONOBJTYPE>?</urn:FGEXPLANATIONOBJTYPE>
</urn:createSupplyType>
</soapenv:Body>
</soapenv:Envelope>
Return:
ID # | Description |
---|---|
return | SUCCESS: Return regarding the executed item FAILURE: -1 |