Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
#790076
Hello, my question is: can I put a link in a dynaform that opens the process map? Is it that I have users who are using the simplified interface that does not have access to the information menu, and thought of putting a link in dynaform to access the process map ...
It's possible?
#790082
You can use this link:
../designer?prj_uid=PROCESS-UID&prj_readonly=true&app_uid=CASE-UID

For example:
http://example.com/sysworkflow/en/neocl ... 1018221432

The easiest way to show the process map is to create a panel in your DynaForm with the ID "processMapPanel" which has the following in its content property:
Code: Select all
@@processMap
Then, add a checkbox with the ID "showMap".
Then, add the following JavaScript to your DynaForm:
Code: Select all
$("#showMap").setOnchange( function(newVal, oldVal) {
  debugger;
  if (newVal == '"1"') 
    $("#processMapPanel").show();
  else
    $("#processMapPanel").hide();
});
  
$("#processMapPanel").hide(); //when form loads 
Then, create the following trigger which is fired before the Dynaform:
Code: Select all
@@processMap = '<iframe width="100%" height="500px"
  src="../designer?prj_uid='.@@PROCESS.
  '&prj_readonly=true&app_uid='.@@APPLICATION.'" >';
Here is a sample process with this code:
(25.93 KiB) Downloaded 341 times
#790222
Very cool. One last: Is it possible to send a link to access the process map for someone who is not a user (a client for example) without having to log in to ProcessMaker and do not even have to log in to Tracker? A link or send the process map in the body of the email ... the idea is to send an email so that the customer can follow your request in a more agile way.

Thank you.
#790226
You can include the link in an email, but the user will have to login and have access to the case (assigned to case, Case Permissions or Process Supervisor) in order to be able to see it. The process map is generated dynamically with HTML and JavaScript, so it can't be sent as an image in an email.

I recommend using the Case Tracker. You can send the case number and the PIN number in an email and the person who receives the email doesn't have to be a registered user in PM or have access to the case.

In the rapidly evolving world of online sports be[…]

STEPN integrates social networking and games that […]

Cenforce 150 is a medication used to cope with a c[…]

What's SAP FICO?

Trustworthy and skill-building, each of these actu[…]