Page 1 of 1
how to get workflow form data ??
PostPosted:Tue Mar 25, 2014 1:50 pm
by basel
hello ,
im using openkm community 6.2 and i have some question
-where can i find the workflow input data ??
-should i have to save it manually ??
-is it possible to make report based on it ??
note i don't wont to assign it to property group
Re: how to get workflow form data ??
PostPosted:Wed Mar 26, 2014 4:42 pm
by jllort
Workflow data is saved at JBPM tables (start with JBPM ) should take a look on it to know what kind of information really you need and want to use to get a report. From Administration database query can access it or directly with database client ( we suggest mysql database ).
Re: how to get workflow form data ??
PostPosted:Thu Mar 27, 2014 7:49 am
by basel
Many thanks jllort,
I already checked these tables that start with jBPM before I submitted my post but I did not find any table used to save workflow form data and most of these tables used to save workflow structure and properties.
I want to ask if there anything that I should do during building workflow in JBoss in order to enforce the jBPM to create tables for each form created form at run time when run the workflow in openKM??
thanks.
Re: how to get workflow form data ??
PostPosted:Mon Mar 31, 2014 9:28 am
by pavila
You don't need to dig into the database tables. With the API you can get the variables from a ProcessInstance (a running workflow). For example:
Code: Select allProcessInstance pi = OKMWorkflow.getInstance().getProcessInstance(token, procInsId);
Map<String, Object> vars = pi.getVariables();