PasteBpmElementsResult PasteBpmElements(BpmProcessId tBpmProcess, PasteBpmElementsArg tArg)
tBpmProcess. Moniker of opened process.
tArg. Operation execution parameters.
The PasteBpmElements operation pastes copied process elements.
To execute the operation, in the tBpmProcess field specify moniker of opened process and in the tArg.pasteAfterGuid field specify the element GUID, after which the copied elements are pasted. The moniker can be obtained after executing the OpenBpmProcess operation. Process elements are pasted from the special clipboard created on executing the CopyBpmElements operation.
The operation results in the information about pasted process elements.
Below is the example of pasting the copied process stage. The request contains moniker of opened process and the stage GUID, after which the copied step is pasted. The response contains GUIDs of the new pasted stage and its steps.
{
"PasteBpmElements" :
{
"tBpmProcess" :
{
"id" : "KCHABFCBDFJFGOAELPKPBKMKIBIKDJHEFJONMMECLKLENNNJ!M!S!BPNGCBIPCBDFJFGOAELOCFACOLAGMIODCEKIOLGAPMGDNOCEBA"
},
"tArg" :
{
"pasteAfterGuid" : "{103D9D40-1C9F-4184-990E-7DB11E5C561A}"
}
}
}
{
"PasteBpmElementsResult" :
{
"stages" :
{
"it" :
{
"guid" : "{3FED5D0F-5203-49A0-9FD0-1C52AC025D1D}",
"stGroups" :
{
"it" :
{
"guid" : "{EABD387D-2D96-4DB4-973D-4C6F4CCD3370}",
"steps" :
{
"it" :
[
"{12921D87-2242-428C-8AF8-5B865E806EF7}",
"{F9814460-F8DF-4E59-8E31-AFD192A23449}"
]
}
}
}
}
}
}
}
public static PasteBpmElementsResult PasteBpmElements(string moniker, string elGUIDDestination)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tPaste = new PasteBpmElements()
{
tArg = new PasteBpmElementsArg()
{
pasteAfterGuid = elGUIDDestination
},
// Create object moniker
tBpmProcess = new BpmProcessId() { id = moniker },
};
// Paste copied process element
var result = somClient.PasteBpmElements(tPaste);
return result;
}
See also: