Monthly Archives: October 2015

Development

E-Mail validation with Imixs-Workflow

With the help of the Imixs RulePlugin the validation of a E-Mail address entered by the user is very simple.

Just add the following JavaScript in the corresponding Workflow Activity:

 var isValid=true;
 var errorCode="VALIDATION_ERROR",errorMessage;

 // E-Mail validierung
 if (!validateEmail("_contact")) {
   isValid=false; 
   var errorMessage='Bitte geben Sie eine gültige E-Mail Adresse ein';
 }

function validateEmail(fieldName) {
 var email = workitem.get(fieldName);
 if (email == null ) 
    return false;  
 var re = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
 return re.test(email[0]);
}

 

News

Imixs-Workflow 3.4.0 with new Rest API

This week the latest version of Imixs-Workflow was released. Version 3.4.0 includes a revised Rest API and several improvements of the Core-API.

The main goal of the new Rest API was an easier usage for rest-based web clients. With modern single-page-application (SPA) frameworks like Angular, Ember or BenJS, business applications can be realized now much faster and easier. A new version of the JavaScript library Imxis-Script will be published shortly. Imixs-Script simplifies the usage of the Imixs-Workflow Engine within JavaScript applications.  The Imixs-Admin client is already based on this new technology.

In addition to the improvements in the Rest and Core API the new release contains some bug fixes as well as enhancements for the Lucene Interface and the management of timer events controlled by the Imixs-Workflow SchedulerService.

Imixs-Workflow is now fully JEE7 capable and can be run on modern application servers like WildFly 9.

With the new release now also different versions of BPMN 2.0 workflow models can be managed at run time. The EJB WorkflowService contains a new feature to manage newer versions of a workflow model in a running process instance. New model versions are recognized automatically in the repository and process instances will be migrated without the need of changes in the current application.

More info about Imixs-Workflow can be found on the Project Site and also on GitHub. Version 3.4. is also part of the open source workflow management suuite ‘Imixs-Office-Workflow‘.