How to evaluate the visibility condition of the FieldRepresentation Object ?

cancel
Showing results for 
Search instead for 
Did you mean: 
dharamjeet
Active Member II

How to evaluate the visibility condition of the FieldRepresentation Object ?

As we define fields in Activiti form modeler we can define certain condition on it, the conditions that we define goes into visibility condition field which is like this : "visibilityCondition":{"leftFormFieldId":"radio_LABEL","leftRestResponseId":"","operator":"==","rightValue":"Approve","rightType":null,"rightFormFieldId":"","rightRestResponseId":"","nextConditionOperator":null,"nextCondition":null}}

 Using this object activiti's UI render the field. I want to know how activity evaluates this in angular(UI).

Since I want to integrate Activiti in custom application I cannot leverage activiti UI. 

Is there any way or UI source code where I can fetch the info to write in Java.

1 Reply
eugenio_romano
Alfresco Employee

Re: How to evaluate the visibility condition of the FieldRepresentation Object ?

Hi If you want to use Angular 2 to create this UI, you can use ADF.

alfresco-ng2-components/ng2-components/ng2-activiti-form at master · Alfresco/alfresco-ng2-component...  The ADF Form component has already all this implementation inside. I suggest you give a look.