Process entity initialization before first task
I'm trying to attach (don't want to create duplicate records) a master entity's values to the process entity just before the first task of process. The code below works fine if executed after first task. But it is not working when executed before first task since the process entity has not been initialized (not persisted and don't have an id). Attach function is not working either. Is there a way to implement this requirement?
var MasterEntityList = CEntityManager.GetEntity("MasterEntity").GetEntityList("","","","");
for (var i=0;i<MasterEntityList.Length;i++)