cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the field 'category_' for deployments

fxandrei
Champ in-the-making
Champ in-the-making
Hy there.
I am trying to use activiti explorer with liferay.
I configured the explorer to use the same database, and everything works.
But i have a problem.
After i make a model, i try to deploy it. I see it is deployed in the activiti explorer, and it works.
The problem is that it does not appear in liferay, and this is because the field "category_" is "null" (the table is "ACT_RE_DEPLOYMENT")
It supposed to be the id of the row in the company row in the table "Company" from liferay.
So, is there anyway i can set the value it puts in field when i deploy a model ?
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
This is done programmatically by adding .category(string) to the DeploymentBuilder.
However, in Explorer, this might not be exposed, and you will need to add this line of code yourself if you need it.

fxandrei
Champ in-the-making
Champ in-the-making
And how can i do that ?

jbarrez
Star Contributor
Star Contributor
Um … by Java coding? Explorer is a Vaadin application, so all Java … like with everything: if it isn't in the 'official' version you can always easily add it by forking the code and adding your own stuff.