We have a very strange and "bug type" problem.We have developed some workflows activities. Some of the activities include Input / Output parameters from type of Lookup. In addition, the workflow itself (from the workflow designer) include conditions and conditions branch that contains values from Lookup fields (by selecting values from a lookup list/window).
When working in the workflow designer and insert to the parameters lookup value (by selecting it from a lookup list/window), it's all working jest fain. The problems start when we export the customizations to another environment by export / import tools (we export the workflows separately from the entities, into a XML file and imports them by using the xml file, into the other environment).
At the new environment, the workflows that were copied seem to be OK, but we can't publish some of them (At the new environment). In the cases of custom workflow activities with input\output parameters, we gets an error in the workflow designer window (the error is in the window when clicking on the workflow step from the workflow designer) that says that "The record is not exists, or you don't have permissions …".After some checking we figure it out: the workflow is searching a Guid / Lookup value from the other environment (that the customizations were imported from).By building that WF from the WF designer again by deleting the current and create new entry / step will solve the problem, but we have hundreds WF and it will be very hard thing to do.In the cases of workflows that include conditions with fields from Lookup, there is a "red cross" that indicating about error, clicking on the row with the condition (properties button) will open the properties window but we have to reselecting the lookup fields from list.My question: Is it possible that the WF export the data with the Schema? because that what seems to be … When I looked at the xml file created in the customization.xml that export the WF I saw a item calls "uidata", that includes a serialization or binary data that embedded in the Xml file, maybe the export tool is including the schema of the WF and includes somehow all of the Input parameters typed Lookup and gets its data hardcoded.
Maybe we are not working correctly? Is there another way to export / import WF (that include Custom workflow Activities with parameters) between environments?We do not want to use the redeployment tool , we jest want to move customization from one environment to another. We have build a deployment program, that simply writes (bulk) the assemblies (Plug-in , Workflows activities …) , other process is to export / import customizations (including Workflows).
Thanks
Itzik BS