CommandWebService
Click here for a complete list of operations.
copyWorkflow
Copy the workflow from one account into another. The arguments are the Login token, the source account ID, the workflow ID to copy from, the target account ID, the owner ID of the new workflow in target account, the mode(copy/replicate) which is a optional parameter which in case if the mode isreplicate then if there is any workflow with given name in target account then this APIs overrides that workflow in the target account, the space ID mapping for workflow task parameters, the user ID mapping for workflow task parameters, the connection ID mapping for workflow task parameters, application lid mapping for workflow task parameters
SOAP
The following is a sample SOAP request and response. The placeholders shown need to be replaced with actual values.
Request
POST /CommandWebService.asmx HTTP/1.1 Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://www.birst.com/copyWorkflow" <?xml version="1.0" encoding="utf-8"?> <s:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <copyWorkflow xmlns="http://www.birst.com/"> <token>string</token> <fromAccountId>string</fromAccountId> <fromWorkflowId>string</fromWorkflowId> <toAccountId>string</toAccountId> <workflowOwnerId>string</workflowOwnerId> <restricted>boolean</restricted> <mode>string</mode> <toWorkflowName>string</toWorkflowName> <spaceIdMapping> <SpaceIdMapping> <fromSpaceId>string</fromSpaceId> <toSpaceId>string</toSpaceId> </SpaceIdMapping> </spaceIdMapping> <userIdMapping> <UserIdMapping> <fromUserId>string</fromUserId> <toUserId>string</toUserId> </UserIdMapping> </userIdMapping> <connectionIdMapping> <ConnectionIdMapping> <fromConnectionId>string</fromConnectionId> <toConnectionId>string</toConnectionId> </ConnectionIdMapping> </connectionIdMapping> <applicationLidMapping> <ApplicationLidMapping> <fromApplicationLId>string</fromApplicationLId> <toApplicationLId>string</toApplicationLId> </ApplicationLidMapping> </applicationLidMapping> </copyWorkflow> </s:Body> </s:Envelope>
Response
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <copyWorkflowResponse xmlns="http://www.birst.com/"> <copyWorkflowResult>string</copyWorkflowResult> </copyWorkflowResponse> </s:Body> </s:Envelope>