Questions and discussion about using ProcessMaker: user interface, running cases & functionality

Moderator: amosbatto

User avatar
By jemiris
#825441
Hi Support,

How to get the current database name from my plugin
I have multiple workspaces so I would like to get the current database name

Is anyone tried please share
Last edited by jemiris on Thu Aug 08, 2019 1:06 am, edited 1 time in total.
User avatar
By amosbatto
#825471
You can find the current workspace in the defined constant SYS_SYS.

For example,
Code: Select all
$databaseName = 'wf_' . SYS_SYS;  //assuming you named your database something like "wf_workflow"

If you are using version 3.2.2 or later you can do this:
Code: Select all
$workspace = config("system.workspace");
$databaseName = config("database.connections.workflow.database");
//see all info available:
$aConfig = config();
var_dump($aConfig); 
die;
A guide to install PM 4

All of the instructions for installing ProcessMake[…]

Hi all! I am trying to export all the data collect[…]

Users Expiring on ProcessMaker

Hi. I am also facing the same issue. Can please su[…]

[Solved] admin account expired

Hi. I am also facing the same issue. Can please su[…]