bpmnLoopingSubProcess=function(_30ab){ VectorFigure.call(this); this.setDimension(110,60); this.setTaskName(_30ab); //It will set the Default Task Name with appropriate count While dragging a task on the canvas }; bpmnLoopingSubProcess.prototype=new VectorFigure; bpmnLoopingSubProcess.prototype.type="bpmnLoopingSubProcess"; bpmnLoopingSubProcess.prototype.setTaskName=function(name){ this.taskName = 'Task '+name; }; bpmnLoopingSubProcess.prototype.paint=function(){ VectorFigure.prototype.paint.call(this); var x=new Array(6, this.getWidth()-3, this.getWidth(), this.getWidth(), this.getWidth()-3, 6, 3, 3, 6); var y=new Array(3, 3, 6, this.getHeight()-3, this.getHeight(), this.getHeight(), this.getHeight()-3, 6, 3); this.graphics.setStroke(this.stroke); this.graphics.setColor( "#c0c0c0" ); this.graphics.fillPolygon(x,y); for(var i=0;i * The string is first cleared and new string is painted.

**/ bpmnLoopingSubProcess.prototype.onOk=function(){ this.figure.bpmnNewText.clear(); //this.figure.bpmnNewText.drawStringRect(this.input.value,this.workflow.currentSelection.width/2-30,this.workflow.currentSelection.height/2-10,200,'left'); this.figure.bpmnNewText.drawString(this.input.value,this.workflow.currentSelection.width/2.5,this.workflow.currentSelection.height/2.5); this.figure.bpmnNewText.paint(); this.figure.taskName = this.input.value; //Set Updated Text value this.workflow.removeFigure(this); };