Share ideas, ask questions, and get feedback about developing for ProcessMaker
Forum rules: Please post new questions under "Developing processes & programming" for ProcessMaker 2 or 3.
By rkiransasi
#784782
HI,
My requirement is as follows.

=> User creates a sales order with multiple lines.
=> Each line will have a separate approval procedure.
=> In the main form, I can get the number of lines and also the values to be passed.
=> Say if 5 lines are there, 5 individual case instances are to be created and send for approval. A separate form will be needed here.

How can I achieve that? Is usage of sub process a good idea? If so How can I use it? Whats the logic to be followed.

Thanks in Advance,
Kiran
User avatar
By ashkufaraz
#785008
You can use this code for create new application dynamically
Only you set ProcessId and TaskId
Code: Select all
jQuery.ajax({
  type: 'POST',
  url: 'casesStartPage_Ajax.php',
  data: {action:'startCase',processId:'236010504563f0ecc2c3889018430339',taskId:'381771797563f0eef519f10023031033'},
  dataType:'json',
  success: function(response){
		 
	var address='http://'+url_domain(document.referrer)+'/sysworkflow/fa/myneo/cases/open?APP_UID='+response.APPLICATION+'&DEL_INDEX='+response.INDEX+'&action=draft&code={$code}';
	window.open(address,'_self');
  },
  error: function(XMLHttpRequest, textStatus, errorThrown) {
	 alert('مشکل در ذخیره اطلاعات'+textStatus);
  }
});
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]