Skip to main content

Posts

Showing posts from June, 2017

Logging In with ProcessMaker's WSDL Web Services

      login()  Web Service After instantiating a SOAP client object, then use the login() function to start a web services session in ProcessMaker: loginResponse login(string userid, string password) The userid is the name of the user and password is the user's password. Note that the function parameters for web service functions have to be passed as an associative array within an array. For instance, if the user ID is 'andy' and the password is 'foobar', then log in using the following script in PHP:      Example:    ini_set("soap.wsdl_cache_enabled", "0");       $client = new SoapClient($params['clientUrl']);    $values = array   (array('userid'=> 'admin', 'password'=> 'pass2017!'));    $result = $client->__SoapCall('login', $values);    $sessionId  = $result->message;    print_r($result->message);

Processmaker WSDL Web Services Functions

userList() returns a list of the users. For privileges to see the list, the user logged must have the PM_USERS permission in their role. userListResponse userList(string sessionId)   Parameters: string sessionId: The session ID, which was obtained during login Example: // get the users list   $user_values = array(array('sessionId'=> $sessionId));   $user_result  = $client->__SoapCall('userList', $user_values);  $data    = $user_result->users;  if(is_array($data))  {   foreach ($data as $user) {    print "$user->name and $user->guid\n";   }  }  else  {   print "$data->name\n";  } groupList() returns a list of the groups. For privileges to see the list, the user logged in must have the PM_USERS permission in their role. groupListResponse groupList(string sessionId) Parameters: string sessionId: The session ID, which was obtained during login. Example:  // get the

Calling a function within a Class method?

example 1 class TestClass { public function __call ( $name , $arg ){ call_user_func ( $name , $arg ); } } class test { public function newTest (){ function bigTest (){ echo 'Big Test Here' ; } function smallTest (){ echo 'Small Test Here' ; } $obj = new TestClass ; return $obj ; } } $rentry = new test ; $rentry -> newTest ()-> bigTest ();

The Processmaker 2.0 Version Backup the workflow

/* * The Processmaker 2.0 Version Backup the workflow */ D:\PM>cd processmaker D:\PM\processmaker>processmaker.bat workspace-backup workflow backup1.tar Backing up to D:/PM/processmaker/shared/backups/backup1.tar Backing up database... Saving database wf_workflow LOCK TABLES                                                               [OK] Dump of table additional_tables                                819 Bytes Saved Dump of table app_cache_view                                 13513 Bytes Saved Dump of table app_delay                                        334 Bytes Saved Dump of table app_delegation                                  8498 Bytes Saved Dump of table app_document                                   21590 Bytes Saved Dump of table app_event                                          0 Bytes Saved Dump of table app_folder                                      5163 Bytes Saved Dump of table app_history                                    14396 Bytes Saved

Conncecting the Processmaker MYSQL using Command Prompt(windows server)

/* * Conncecting the Processmaker MYSQL using Command Prompt(windows server) */ C:\Bitnami\processmaker-3.1-1\mysql\bin>mysql -u root -p Enter password: ** Welcome to the MySQL monitor.  Commands end with ; or \g. Your MySQL connection id is 865 Server version: 5.5.53 MySQL Community Server (GPL) Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show databases; +--------------------+ | Database           | +--------------------+ | information_schema | | bitnami_pm         | | mysql              | | performance_schema | | test               | | wf_backup1         | | wf_business        | | wf_crm             | | wf_finance         | +--------------------+ 9 rows in set (0.00 sec)

How to solve the issue secure-file-priv in MYSQL

/********************************************************************************/ /* TITLE : How to solve the issue secure-file-priv in processmaker /* DESCRIPTION : To Get the secure-file-priv in processmaker /* CREATED BY   : Jemiris Selvi S /* CREATED ON : 12-June-2017 /* MODIFIED BY : Jemiris Selvi S /* MODIFIED ON : 12-June-2017 /********************************************************************************/ Step:1 ------- open the mysql directory : <INSTALLATION-DIRECTORY>\Proceess Maker 3.2\mysql Step: 2 -------- Open the my.ini file and if the line exists put empty string else insert this line secure-file-priv = "" Step: 3 --------- Save and Run a service

Backing up PM 3.0 workspace in windows

/*******************************************************************************/ /* TITLE : Backing up PM 3.0 workspace in windows /* DESCRIPTION : To Backing up Process Maker 3.0 workspace in windows /* CREATED BY   : Jemiris Selvi S /* CREATED ON : 12-June-2017 /* MODIFIED BY : Jemiris Selvi S /* MODIFIED ON : 12-June-2017 /*******************************************************************************/ Step : 1 --------- C:\Bitnami\processmaker-3.0.1.8-0\apps\processmaker\htdocs ********************************************************************************* Step : 2 --------- processmaker.bat workspace-backup workflow ********************************************************************************* C:\Bitnami\processmaker-3.1-1\apps\processmaker\htdocs>processmaker.bat workspace-backup workflow 'stty' is not recognized as an internal or external command, operable program or batch file. Backing up to C:\Bitnami\processmaker-

How to stop VMware port error of 443 on XAMPP Control Panel v3.2.1

The Port condifuration of XAMPP : Here is the solution step-by-step: Open up  httpd-ssl.conf  in  path2xampp\apache\conf\extra Look for the line  Listen 443 Change port number to anything you want. I use  4430 . ex.  Listen 4430 . Replace every  443  string in that file with  4430 . Save the file.