Skip to main content
Version: 2.2.3

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
Requestweb\wwwroot\ws\java\supply\CreateSupplyTypeRequestType.java
Returnweb\wwwroot\ws\java\supply\CreateSupplyTypeResponseType.java

Request:

ID #RequiredDescription
IDOBJECTTYPEXSupply type ID #
NMOBJECTTYPEXSupply type name
FGUSEREVISIONOBJTYPEXFlag to identify whether the supply will have a revision:
1 - It will have;
2 - It will not have.
IDMASKMask ID #
IDOBJECTTYPEOWNERUpper level supply type
FGEDITIDRevision ID #.
1 - Text;
2 - Numeric;
3 - Customized;
Will be required if the FGUSEREVISIONOBJTYPE is 1
IDREVISIONROUTEOBJTYPERoute ID #
IDPROCESSOBJTYPEActivity ID #
FGREVIDOBJTYPERevision ID #. Will be required if the FGUSEREVISIONOBJTYPE is 1
FGTYPECYCLEOBJTYPERevision cycle:
1 - Numeric;
2 - Text
FGREVRETENTIONMODEOBJTYPERetention frequency of obsolete revisions. Will be required if the FGUSEREVISIONOBJTYPE is 1;
FGTYPEUPDATEOBJTYPEChange: Numeric pattern;
FGREVAPPROVALMODEOBJTYPEApproval type:
1 - Incremental;
2 - Circular.
FGREVRELEASEMODEOBJTYPEClosure type:
1 - Automatic;
2 - Manual.
FGREVELABCLAUSEOBJTYPEAcceptance of revision in the draft step. Will be required if the FGUSEREVISIONOBJTYPE is 1
FGREVCONSCLAUSEOBJTYPEAcceptance of revision in the review step. Will be required if the FGUSEREVISIONOBJTYPE is 1
FGREVAPROVCLAUSEOBJTYPEAcceptance of revision in the approval step. Will be required if the FGUSEREVISIONOBJTYPE is 1
FGREVHOMOLOGCLAUSEOBJTYPERevision release type:
1 - AND
2 - OR
FGEXPLANATIONOBJTYPEMandatory 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
returnSUCCESS: Return regarding the executed item
FAILURE: -1