Updating a BPM Instance
Function
This API is used to update a BPM instance.
URI
PUT Huawei Cloud Astro Zero domain name/u-route/baas/bp/v2.0/metadata/definitions/{bpm_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
bpm_id |
Yes |
String |
Explanation BPM instance ID, which can be queried by invoking the API of Querying BPM Instances by Condition (id in the response message). Constraints None Value None Default value None |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
name |
Yes |
String |
Explanation Name of the BPM instance. Constraints None Value Start with a letter and can contain only letters, digits, and single underscores (_). There is no consecutive underscore (_) and the value cannot end with an underscore (_). A maximum of 64 characters are allowed. Default value None |
label |
Yes |
String |
Explanation Label of the BPM instance. Constraints None Value 1–80 characters Default value None |
description |
No |
String |
Explanation BPM description. Constraints None Value None Default value None |
version |
No |
String |
Explanation Version. Constraints None Value None Default value None |
instanceLabel |
No |
String |
Explanation Label of the BPM instance, which can contain system variables. Constraints None Value None Default value None |
laneSet |
No |
object |
Explanation Lanes. Constraints None |
config |
No |
object |
Explanation Configuration information. Constraints None |
startEvents |
No |
Array of object |
Explanation Start events. Constraints None |
dataMappers |
No |
Array of object |
Explanation Data mappings. Constraints None |
userTasks |
No |
Array of object |
Explanation User tasks. Constraints None |
serviceTasks |
No |
Array of object |
Explanation Service tasks. Constraints None |
businessRuleTasks |
No |
Array of object |
Explanation Business rule tasks. Constraints None |
callActivities |
No |
Array of object |
Explanation Call activities. Constraints None |
subProcesses |
No |
Array of object |
Explanation Embedded subprocesses. Constraints None |
throwEvents |
No |
Array of object |
Explanation Events to throw. Constraints None |
catchEvents |
No |
Array of object |
Explanation Events to catch. Constraints None |
exclusiveGateways |
No |
Array of object |
Explanation Exclusive gateways. Constraints None |
parallelGateways |
No |
Array of object |
Explanation Parallel gateways. Constraints None |
eventGateways |
No |
Array of object |
Explanation Event gateways. Constraints None |
usingSLA |
No |
Array of object |
Explanation SLA referenced by the BPM instance. Constraints None |
slas |
No |
Array of object |
Explanation SLA. Constraints None |
constants |
No |
Array of object |
Explanation Constants. Constraints None |
variables |
No |
Array of object |
Explanation Variables. Constraints None |
Response parameters
Parameter |
Type |
Description |
---|---|---|
resCode |
String |
Explanation Return code. Value If the request is successful, 0 is returned. For details about other error codes, see Error Codes. |
resMsg |
String |
Explanation Message returned. Value If the request is successful, Success is returned. In other cases, an error message is returned. |
result |
Object |
Explanation If the request is successful, the BPM instance information is returned. |
Example Request
PUT https://Huawei Cloud Astro Zero domain name/u-route/baas/bp/v2.0/metadata/definitions/001L000000Peuw1Q318a
{
"config": {
"cancelable": false,
"noCancelAfterElem": ""
},
"dataMappers": [
{
"assignmentItems": [
{
"assignTo": "dateList",
"name": "",
"operator": "add",
"value": "2019-03-04",
"valueType": ""
},
{
"assignTo": "dateList",
"name": "",
"operator": "add",
"value": "2020-01-02",
"valueType": ""
}
],
"connector": "userTask",
"connectorPoint": "{\"fromPort\":\"R1\",\"toPort\":\"L1\",\"points\":[\"619 125\",\"643 125\",\"662.5 125\",\"662.5 100\",\"682 100\",\"706 100\"]}",
"description": "",
"label": "Data Mapper",
"locationX": 575,
"locationY": 125,
"name": "dataMapper",
"connectors": []
}
],
"description": "",
"label": "SimpleBP",
"laneSet": {
"label": "",
"lanes": [
{
"elements": [
"userTask",
"userTask1",
"dataMapper",
"start"
],
"height": 201.35220031738282,
"label": "lane",
"name": "lane",
"role": "LoanRequest.Applicant",
"width": 1080
}
],
"name": ""
},
"name": "SimpleBP",
"slas": [
{
"active": true,
"criteria": "",
"deadlineDays": 0,
"deadlineHours": 0,
"deadlineIncreaseUrgencyBy": 2,
"deadlineMinutes": 0,
"deadlineOnlyBusinessDays": false,
"goalActions": [
{
"action": "",
"criteria": "{!IsMatched} && {!Owner}",
"name": "sla-act",
"type": "Notify Manager"
}
],
"goalDays": 0,
"goalHours": 0,
"goalIncreaseUrgencyBy": 1,
"goalMinutes": 0,
"goalOnlyBusinessDays": false,
"label": "userTask1_sla",
"name": "userTask1_sla",
"startWhen": "",
"variable": "",
"actions": []
},
{
"active": true,
"criteria": "",
"deadlineDays": 0,
"deadlineHours": 0,
"deadlineIncreaseUrgencyBy": 2,
"deadlineMinutes": 0,
"deadlineOnlyBusinessDays": false,
"goalActions": [
{
"action": "NotifyBPManager",
"criteria": "",
"name": "sla-act1",
"type": "Notify Manager"
}
],
"goalDays": 1,
"goalHours": 0,
"goalIncreaseUrgencyBy": 1,
"goalMinutes": 0,
"goalOnlyBusinessDays": false,
"label": "userTask_sla",
"name": "userTask_sla",
"startWhen": "",
"variable": "",
"actions": []
}
],
"startEvents": [
{
"connector": "dataMapper",
"connectorPoint": "{\"fromPort\":\"R1\",\"toPort\":\"L0\",\"points\":[\"151.5 100\",\"175.5 100\",\"341.25 100\",\"341.25 110.5\",\"507 110.5\",\"531 110.5\"]}",
"label": "Start",
"locationX": 125,
"locationY": 100,
"name": "start",
"type": "Start",
"startType": "",
"renderType": "",
"render": "",
"document": "",
"description": ""
}
],
"startStage": null,
"startType": "",
"status": "Warning",
"status.name": "Warning",
"userTasks": [
{
"approvalType": "Single",
"connector": "userTask1",
"connectorPoint": "{\"fromPort\":\"R1\",\"toPort\":\"L1\",\"points\":[\"794 100\",\"818 100\",\"875 100\",\"875 100\",\"932 100\",\"956 100\"]}",
"description": "wuli desc",
"groupAsSingleParticipant": false,
"inputAssignments": [
{
"input": "$Task.Title",
"name": "",
"value": "{!$GlobalConstant.EmptyString}",
"valueType": ""
}
],
"label": "User Task",
"locationX": 750,
"locationY": 100,
"name": "userTask",
"participants": [
{
"type": "user",
"value": "ecommerce6"
}
],
"preActions": [
{
"action": "{!$GlobalConstant.EmptyString}",
"criteria": "",
"name": "action",
"type": "Set Status"
}
],
"render": "SimpleBP$Form1$form",
"renderType": "Form",
"routeType": "Name and Expressions",
"router": {
"defaultRouteTo": "",
"defaultRouteType": "",
"name": ""
},
"title": "wu li tu cao",
"usingSLA": "userTask_sla",
"routeTo": "",
"faultConnector": "",
"boundaryEvents": [],
"outputAssignments": [],
"document": "",
"priority": 3
},
{
"approvalType": "Single",
"groupAsSingleParticipant": false,
"label": "User Task",
"locationX": 1000,
"locationY": 100,
"name": "userTask1",
"priority": 3,
"render": "SimpleBP$ut1$form",
"renderType": "Form",
"routeType": "Last Assignee In Lane",
"router": {
"defaultRouteTo": "",
"defaultRouteType": "",
"name": ""
},
"title": "T2",
"routeTo": "",
"connector": "",
"faultConnector": "",
"boundaryEvents": [],
"inputAssignments": [],
"outputAssignments": [],
"document": "",
"description": ""
}
],
"variables": [
{
"currencyFactor": 0,
"dataType": "checkBox",
"defaultValue": "{!$GlobalConstant.True}",
"defaultValueType": "",
"description": "",
"extNS": "",
"extType": "",
"isCollection": false,
"isInput": false,
"isNested": false,
"isOutput": false,
"name": "IsMatched"
},
{
"currencyFactor": 0,
"dataType": "text",
"defaultValue": "Hello",
"defaultValueType": "",
"description": "",
"extNS": "",
"extType": "",
"isCollection": false,
"isInput": false,
"isNested": false,
"isOutput": false,
"name": "Owner"
},
{
"currencyFactor": 0,
"dataType": "date",
"defaultValue": "",
"defaultValueType": "",
"description": "",
"extNS": "",
"extType": "",
"isCollection": false,
"isInput": false,
"isNested": false,
"isOutput": false,
"name": "dateVar"
},
{
"currencyFactor": 0,
"dataType": "date",
"defaultValue": "",
"defaultValueType": "",
"description": "",
"extNS": "",
"extType": "",
"isCollection": true,
"isInput": false,
"isNested": false,
"isOutput": false,
"name": "dateList"
},
{
"currencyFactor": 0,
"dataType": "extStruct",
"defaultValue": "",
"defaultValueType": "",
"description": "",
"extNS": "SimpleBP",
"extType": "Form1Form",
"isCollection": false,
"isInput": false,
"isNested": false,
"isOutput": false,
"name": "Form1Form"
}
],
"version": "1.0.1",
"usingSLA": ""
}
Example Response
{
"resCode": "0",
"resMsg": "Success",
"result": {
"errors": [
"string"
],
"warnings": [
"string"
]
}
}
Status Code
See Status Codes.
Error Code
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot