Answered

Cannot Perform setxpath for a paramater/replicated entity.

I would like to have a reusable form that will show the current task status as the user progresses through the task.I have tried to use

<Provisioning.TaskName>=Me.Case.ProcessState

as a default value, as an expression and as an Action on the form, however I always get this type of error

Error processing Rule = 95f653d4-8608-49fd-a1a3-db34283f9b8d; Error:

Error Evaluating Rule 10007 - Error Cannot perform setxpath for a

Parameter/Replicated entity, xpath=Provisioning.TaskName value=Running - bad

xpath or Unable to cast object of type 'BizAgi.Defs.EProcessState' to type

'System.String'..

I can't find this anywhere on the posts as to what may be causing the problem.

Best Answer
photo

Dear Robin,

SetXpath function is to be used in master entities or collections, but a user cannot set values to parameter entities using that function. To insert/modify values of parameter entities must be using Work portal (http://help.bizagi.com/bpmsuite/en/index.html?parameter_entities_values_in_the_w.htm). However, when the entity is a replicated entity, it must be updated in source entity (http://help.bizagi.com/bpmsuite/en/index.html?replication.htm).

Regards

photo
0

Dear Robin,

SetXpath function is to be used in master entities or collections, but a user cannot set values to parameter entities using that function. To insert/modify values of parameter entities must be using Work portal (http://help.bizagi.com/bpmsuite/en/index.html?parameter_entities_values_in_the_w.htm). However, when the entity is a replicated entity, it must be updated in source entity (http://help.bizagi.com/bpmsuite/en/index.html?replication.htm).

Regards

photo
0

Juan, your response refers to parameter entities and replicated entities however my problem is related to a reusable form that has fields associated to the master process entity. This reusable form is used in every step of my process and what I wanted to include was the name of the current step/task on the reusable form so the person knew what part of the step/task they were in when managing the process.