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 csalinas
#4715
Hello!

We are trying to do an integration between ProcessMaker and a system our customer use for managing projects. The case follows a course and in one task "leaves" ProcessMaker to be worked on the external system. Once the work is done outside ProcessMaker, the case returns to ProcessMaker to continue in the process.

1.- Pass the case to the external system (Already done with a trigger in ProcessMaker)
2.- Once finished in external system, tell processMaker to move to the next task. We are trying to do this using a trigger in the external database, this trigger should modify PM database and move the case to the next step.

Thanks in advance.

Cheers
User avatar
By amosbatto
#4719
This is going to take some work on your part. What you need to do is use web services to login from the external web page as a user who is one of the assigned users for the task and then use routeCase() to route (derivate) the case to the next task in the process. See: http://wiki.processmaker.com/index.php/ ... .29_a_case

Then in your PHP code use caseList() or caseInfo() to lookup the new case UID and delegation index for the case, so you can define the variables $myIpAddress, $caseUID and $delegationIndex which can be inserted in the following page:

Then write a web page which will redirect the web browser to the case in ProcessMaker. Something like:
Code: Select all
<?php
//use web services caseList() function
//define $myIpAddress, $caseUID, $delegationIndex
$caseURL = "http://$myIpAddress/sysworkflow/en/green/cases/cases_Open?APP_UID=$caseUID&DEL_INDEX=$delegationIndex";
print """
<html>
<head
<script type="text/javascript">
function returnToProcessMaker() 
{
     href.location='$caseURL';
}
</script>
</head>
<body onload="returnToProcessMaker()">
</body>
</html>
"""
?>

Temu New user DIscount code Using Temu's DIscount […]

By using the Temu coupon code [acu600079], you can[…]

Yes, the Temu Coupon Code "aci384098" or[…]

Yes, the Temu Coupon Code "aci384098" do[…]