``shallowCopy`` | optional, boolean |
- _Shallow Copy_ (this parameter is true)
- References to existing objects are retained.
- For objects that do not contain references, copying should be omitted,
e.g. for _Locks_, because with _Shallow Copy_ no copied _Workflow_ would reference the copied _Lock_.
- Therefore: _Shallow Copy_ copies objects that contain references, currently _Workflows_, _Schedules_.
- If a single object is copied, then a copy is always made, even for objects that do not contain references.
- If folders are copied, then objects are not copied unless they contain references.
- _Deep Copy_ (this parameter is false)
- All objects are copied, without exception.
- All existing references to objects are updated with regard to the copied objects.
- If, for example, a workflow references a _Lock_ that is not itself the object of the copy operation, the previous reference is retained.
- If, on the other hand, the referenced _Lock_ is also copied, then the reference in the _Workflow_ is updated.
| | false |