I have a microflow that is being called from a mobile widget. I can confirm that it is getting run as I have put log nodes in my microflow and when i put a breakpoint in the modeller on i can see it runs and it will open the form correctly. However when i remove the breakpoint from the modeller the form that i am trying to open in the widget will not open. It's the strangest behaviour. Could it be something to do with my widget javascript? Debugging it just shows that it should be working and when i do the modeller debugging it is working. Any help would be amazing. Heres my code: dojo.provide("DistributorCookie.widget.DistributorCookie-Mobile"); dojo.declare("DistributorCookie.widget.DistributorCookie-Mobile", mobile.widget._Widget, { distName: "", cookieName : "", mfExecute: "", distributorEntity:"", distributorObject : "", postCreate: function () { this.loaded(); }, setDataobject:function(obj){ var cookie = this.readCookie(this.cookieName); if(cookie != null){ if (cookie != obj.getAttribute(this.distName)){ var xpathString = "//" + this.distributorEntity + "[Name='"+cookie+"']"; var options = { limit : 50, depth : 0 }; mx.processor.getObjectsByXPath( xpathString, options, dojo.hitch(this, this.executeMF) ); } } }, applyContext : function(context, callback) { logger.debug(this.id + ".applyContext"); if (context) mx.processor.getObject(context.getActiveGUID(), dojo.hitch(this, this.setDataobject)); else logger.warn(this.id + ".applyContext received empty context"); callback && callback(); }, executeMF: function(objects){ for(var i=0;i < objects.length;i++){ this.distributorObject = objects[i]; mx.processor.xasAction({ error: function() { logger.error(this.id + "error: error while executing distributor link"); }, actionname: this.mfExecute, guids: [this.distributorObject.getGUID()], applyto: 'selection' }); } }, update: function(obj, callback){ }, createCookie: function(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; }, readCookie: function(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; }, eraseCookie: function(name) { createCookie(name,"",-1); } }); Regards
asked
Simon Black
1 answers
0
I found out that it was an issue with a dataview within the current dataview. I think this was stopping the microflow being run correctly.