Appelez l'opération ListWorkFlowTemplates pour obtenir la liste des modèles de workflow d'approbation.
Débogage
Paramètres de requête
| Parameter | Type | Required | Example | Description |
| Action | String | Yes | ListWorkFlowTemplates |
L'opération à effectuer. Valeur : ListWorkFlowTemplates . |
| Tid | Long | Yes | -1 |
L'ID du locataire. Remarque L'ID du locataire est
extrait de l'ID affiché lorsque vous placez le pointeur sur votre photo de profil. Pour plus d'informations, consultez
Afficher les informations du locataire
.
|
| SearchName | String | No | Admin |
Le nom du modèle de recherche. |
Paramètres de réponse
| Parameter | Type | Sample response | Description |
| ErrorCode | String | UnknownError |
Le code d'erreur. |
| ErrorMessage | String | UnknownError |
Le message d'erreur. |
| RequestId | String | 41067071-0243-4AAB-B3CF-4DE6D54F53B4 |
L'ID de la requête. |
| Success | Boolean | true |
Indique si l'appel a réussi. |
| WorkFlowTemplates | Array of WorkFlowTemplate |
La liste des modèles de workflow d'approbation. |
|
| WorkFlowTemplate | |||
| Comment | String | test |
La description. |
| CreateUserId | Long | 1234 |
L'ID du créateur. |
| Enabled | String | Y |
Indique si le modèle de workflow est activé. Valeurs valides :
|
| IsSystem | Integer | 1 |
Indique si le modèle d'approbation est défini par le système. Valeurs valides :
|
| TemplateId | Long | 12345 |
L'ID du modèle. |
| TemplateName | String | Admin |
Le nom du modèle. |
| WorkflowNodes | Array of WorkflowNode |
Les informations relatives aux nœuds d'approbation. |
|
| WorkflowNode | |||
| Comment | String | test |
La description. |
| CreateUserId | Long | 1234 |
L'ID du créateur. |
| NodeId | Long | 123 |
L'ID du nœud. |
| NodeName | String | test |
Le nom du nœud. |
| NodeType | String | SYS |
Le type de nœud. Valeurs valides :
|
| Position | Integer | 1 |
L'ordre. |
| TemplateId | Long | 12345 |
L'ID du modèle. |
Exemples
Exemple de requête
http(s)://[Endpoint]/? Action=ListWorkFlowTemplates &Tid=-1 &<common request parameters>
Exemples de réponses réussies
XML format
<RequestId> 41067071-0243-4aab-b3cf-4de6d54f53b4 </RequestId> <Success> true </Success> <WorkFlowTemplates> <WorkFlowTemplate> <Comment> system define approval line, it is only necessary to administrator approval </Comment> <WorkFlowNodes> <WorkFlowNode> <Comment> system node dynamically computed by an administrator to complete the examination and approval </Comment> <NodeName> Admin </NodeName> <Position> 0 </Position> <NodeType> SYS </NodeType> <NodeId> 3763 </NodeId> <TemplateId> 6243 </TemplateId> </WorkFlowNode> </WorkFlowNodes> <TemplateName> Admin </TemplateName> <Enabled> Y </Enabled> <IsSystem> 1 </IsSystem> <TemplateId> 6243 </TemplateId> </WorkFlowTemplate> <WorkFlowTemplate> <Comment> System-defined approval line, First Data Owner approval then DBA approval last Admin approval </Comment> <WorkflowNodes> <WorkFlowNode> <Comment> system node dynamic calculation operated by a user of the resource corresponding to the Owner of the project to complete the examination and approval </Comment> <NodeName> Owner </NodeName> <Position> 0 </Position> <NodeType> SYS </NodeType> <NodeId> 3762 </NodeId> <TemplateId> 6244 </TemplateId> </WorkFlowNode> <WorkFlowNode> <Comment> system node dynamic calculation operated by a user of the resource corresponding to the DBA to complete the examination and approval </Comment> <NodeName> DBA </NodeName> <Position> 0 </Position> <NodeType> SYS </NodeType> <NodeId> 3761 </NodeId> <TemplateId> 6244 </TemplateId> </WorkFlowNode> <WorkFlowNode> <Comment> system node dynamically computed by an administrator to complete the examination and approval </Comment> <NodeName> Admin </NodeName> <Position> 0 </Position> <NodeType> SYS </NodeType> <NodeId> 3763 </NodeId> <TemplateId> 6244 </TemplateId> </WorkFlowNode> </WorkflowNodes> <TemplateName> Owner-->DBA-->Admin </TemplateName> <Enabled> Y </Enabled> <IsSystem> 1 </IsSystem> <TemplateId> 6244 </TemplateId> </WorkFlowTemplate> </WorkFlowTemplates>
JSON
{"RequestId": "41064071-0243-4 AAB-B3CF-4DE6D54F53B4", "Success": true, "WorkFlowTemplates": { "WorkFlowTemplate": [ { "Comment": "The system-defined approval line, only the administrator's approval is required", "WorkFlowNodes": { "WorkFlowNode": [ { "Comment": "System node, dynamic computing, approved by the administrator", "NodeName": "Admin", "Position": 0, "NodeType": "SYS", " NodeId ": 3763, " TemplateId ": 6243 } ] }, " TemplateName ": " Admin ", " Enabled ": " Y ", " IsSystem ": 1, " TemplateId ": 6243 }, { " Comment ": " The approval line defined in system, data Owner approval first, DBA approval again and Admin approval again. "WorkflowNodes": { "WorkFlowNode": [ { "Comment": "The system node, which is dynamically calculated. The approval process will be completed by the Owner corresponding to the resource you operate.", "NodeName": "Owner", "Position": 0, "NodeType": "SYS", "NodeId": 3762, "TemplateId": 6244 }, { "Comment": "The system node, which is dynamically computed. The approval is completed by the DBA corresponding to the resource operated by the user.", "NodeName": "DBA", "Position": 0, "NodeType": "SYS", "NodeId": 3761, "TemplateId": 6244 }, {"Comment": "The system node that dynamically calculates the result. Approval is handled by the administrator.", "NodeName": "Admin", "Position": 0, "NodeType": "SYS", "NodeId": 3763, "TemplateId": 6244 } ] }, "TemplateName": "Owner -->DBA -->Admin", "Enabled": "Y", "IsSystem": 1, "TemplateId": 6244 } ] }}
Codes d'erreur
Pour plus d'informations sur les codes d'erreur, consultez error center.