Under Consideration

Programming language used in Bizagi expressions

Dear Bizagi community,

I started working on a Bizagi project some weeks ago. I have reviewed a lot of your tutorials, documentation and different topics in this forum, which are really helpful, but I feel stuck often when I have to program specific logic using expressions.

I refer to logic like the one described in this example: http://help.bizagi.com/bpmsuite/en/index.html?task_allocation_using_expressi.htm but also for other purposes (validations, custom business rules, etc).

My first question is: What is the programming language used in Bizagi expressions? is it a limited version or subset of an existing programming language (like C#?) or is it something 100% customized and created solely for Bizagi (and in this case, is it inspired in any existing programming language)?

Second one: Can I use regular expressions in expressions to validate form fields? I know I can use javascript regular expressions as part of field validation when designing forms but I'm asking about including them as part of Bizagi expressions contained in, for example, an "On exit" specific business rule.

Thanks in advance,

Best regards

Best Answer
photo

Dear A.M. Latasa,

About your first question, Bizagi uses its own functions and structures to program expressions. Check these articles:

Expression uses a especial characteristic of Bizagi. It is called Xpath in order to access to data model.

Bizagi expression Programming is inspired in C# language. For the second question, Bizagi uses a feature for this. It is called Actions and validations. one, Actions control the behavior of all attributes included in the form, two, Validations send error messages to end users when data entered does not comply the business requirements. Please check these articles:

Kind Regards,

photo
0

Dear A.M. Latasa,

About your first question, Bizagi uses its own functions and structures to program expressions. Check these articles:

Expression uses a especial characteristic of Bizagi. It is called Xpath in order to access to data model.

Bizagi expression Programming is inspired in C# language. For the second question, Bizagi uses a feature for this. It is called Actions and validations. one, Actions control the behavior of all attributes included in the form, two, Validations send error messages to end users when data entered does not comply the business requirements. Please check these articles:

Kind Regards,

photo
0

Thank you Juan,

Best regards

photo
0

It will be great to have a method under the "CHelper" that could perform a RegEx (RegularExpression) match so that the power of regular expressions can be leveraged over the Bizagi Expressions builder

photo
0

Dear Arun,

Your point of view can be considered as an idea. If you mind, you can publish it and then, all the community can vote in order to implement in future releases.

Best Regards

photo
0

To replace a particular text I can use this:

domText = domText.replace('xxx', Domicilio.getXPath("Value"));

But it doesn't replace all ocurrences of this text.

I would LOVE to be able to use this:

domText = domText.replace(/xxx/g, Domicilio.getXPath("Value"));

It is considered correct JSCRIPT, why doesn't it work?

It gives JScript Syntax error...

Please change this to an IDEA.

Since regular expressions can be very useful.

photo
0

Dear Users,

As request, It will be changed to idea.

Regards