importTraining
This method allows adding/editing:
- A training (if the training exists already, it will be edited).
To insert each of these items, it is necessary to follow the standard documented below.
Java class | |
---|---|
Request | web/wwwroot/ws/java/training/ImportTrainingRequestType.java |
Return | web/wwwroot/ws/java/training/ImportTrainingResponseType.java |
Request:
ID | Required | Description |
---|---|---|
IDTRAIN | X¹ | Training ID #. |
NMTRAIN | Training name. | |
IDCOURSE | X² | Course ID #. |
FGSTATUS | X² | Training status [1 - Planning, 5 - Execution, 8 - Finished]. The training can be generated under execution, if the configuration used has an evaluation type or any required item that prevents the training from being created as finished. If you prefer to create the training as finished, use a simple configuration. |
FGPARTTYPE | X² | Training type [1 - Collective; 2 - Individual]. |
NMUSERINFO | Participant's ID (internal user) or e-mail (external user). To add more than one participant, use the ";" separator. For example: ID/E-mail;ID/E-mail;ID/E-mail. If you wish to enter the participant's score, use the " separator. | |
INSTRUCTOR | Instructor's ID or third-party instructor's name. To add more than one participant, use the ";" separator. For example: ID/Name;ID/Name. If you wish to define that the instructor will have control in the training, enter the number "1" after the ID, using the "|" separator. For example: ID/E-mail| Score;ID/E-mail|Score. If you wish to enter the participant's score and attendance, use the "|" separator. | |
OBJECT | Document ID #. To add more than one object, use the ";" separator. For example: Object;Object. To specify the revision, it is necessary to identify the revision #; use the "|" separator. For example: Object|00;Object|01 | |
IDCONFIGURATION | Training configuration ID #. | |
IDTEAMPLAN | Planning control team ID #. | |
IDTEAMEXEC | Execution control team ID #. | |
FGLOCATION | Location type [1 - Internal; 2 - Third-party]. | |
IDENTITY | Educational entity ID #. | |
SUPPORT | Support staff. | |
OBJECTIVE | Objective. | |
COMM | Comments. | |
DTSTARTPLAN | X³ | Planned start date. |
DTENDPLAN | X³ | Planned end date. |
WORKLOADPLAN | Planned workload (Number of minutes). | |
DTSTARTEXEC | X⁴ | Actual start date. |
DTENDEXEC | Actual end date. | |
WORKLOADEXE | Actual workload (Number of minutes). | |
SIGNATURE | Signature on training certificate. |
info
- X¹ - It will be required for editing.
- X² - It will be required for creation.
- X³ - It will be required in the case of training planning creation.
- X⁴ - It will be required in the case of training execution creation.
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:training">
<soapenv:Header/>
<soapenv:Body>
<urn:importTraining>
<!--You may enter the following 23 items in any order-->
<urn:IDTRAIN>?</urn:IDTRAIN>
<urn:NMTRAIN>?</urn:NMTRAIN>
<urn:IDCOURSE>?</urn:IDCOURSE>
<urn:FGSTATUS>?</urn:FGSTATUS>
<urn:FGPARTTYPE>?</urn:FGPARTTYPE>
<urn:NMUSERINFO>?</urn:NMUSERINFO>
<urn:INSTRUCTOR>?</urn:INSTRUCTOR>
<urn:OBJECT>?</urn:OBJECT>
<urn:IDCONFIGURATION>?</urn:IDCONFIGURATION>
<urn:IDTEAMPLAN>?</urn:IDTEAMPLAN>
<urn:IDTEAMEXEC>?</urn:IDTEAMEXEC>
<urn:FGLOCATION>?</urn:FGLOCATION>
<urn:IDENTITY>?</urn:IDENTITY>
<urn:SUPPORT>?</urn:SUPPORT>
<urn:OBJECTIVE>?</urn:OBJECTIVE>
<urn:OBS>?</urn:OBS>
<urn:DTSTARTPLAN>?</urn:DTSTARTPLAN>
<urn:DTENDPLAN>?</urn:DTENDPLAN>
<urn:WORKLOADPLAN>?</urn:WORKLOADPLAN>
<urn:DTSTARTEXEC>?</urn:DTSTARTEXEC>
<urn:DTENDEXEC>?</urn:DTENDEXEC>
<urn:WORKLOADEXE>?</urn:WORKLOADEXE>
<urn:SIGNATURE>?</urn:SIGNATURE>
</urn:importTraining>
</soapenv:Body>
</soapenv:Envelope>
Return:
ID | Description |
---|---|
return | SUCCESS: ID # of the new training. FAILURE: Error message. |