I have to prepare several workflows (SmartForms, Views and SmartObjects as well) based on the same "template". These are for a customer which has several subsidiaries, with some local specifics. In the future more specifics are expected.
There is the only K2 server and the only SharePoint server. The workflows and related K2 objects are managed/executed by the same K2 server, each workflow will operate on the different data (separated SmartObjects connected to the separate service instances connected to the ShP lists in separate web-collections). The structure of the ShP lists is the same, at least at the moment.
I have supposed to create, test and deploy "pilot" K2 solution (i.e., a set of K2 objects like Workflow_01, ServiceInstance_01, SmartObject_01, View_01 and SmartForm_01) and then to SaveAs all of the pilot objects. And this led me to the problem.
I know how to clone the SmartForms and views. When saving the SmartForm system offers "cloning" of the views as well. But there is no way (at least, I do not know any) how to clone the SmartObjects in these views. I have tried to create the SmartObject "similar" (the same methods, the same properties, another service object) to the one used in the existing view. Then I cloned my view and changed its SmartObject. Unfortunately, all view fields (text boxes, data labels, etc.) have been unbounded from the SmartObject, the rules were "corrupted" as well.
So my questions are:
- How to efficiently clone K2 solution as whole?
- Is there a way how to replace SmartObject in a View with another one, while keeping the fields bounded and rules uncorrupted?
Thanks in advance for any suggestion.
Petr