cancel
Showing results for 
Search instead for 
Did you mean: 

help, activiti5.16.4, where is the config file? activiti-standalone-context.xml has no effect

dalong
Champ in-the-making
Champ in-the-making
before 5.16.3 and 5.16.3,   i have config java bean in WEB-INF/activiti-standalone-context.xml.
but when i upgrade to 5.16.4, I found there is no activiti-standalone-context.xml in activiti-explorer.  i create one, and replace it with previous file, but it's no effect.

actually i have found some configuration changed yet. 
For example WEB-INF/classes/engine.properties instead of generateReportData in activiti-standalone-context.xml.
now, how can i config a java bean ? 

  <bean class="com.xxx.JsonrpcBean" id="jsonrpc">
    <property value="http://127.0.0.1" name="baseUrl"/>
  </bean>

thank you!
6 REPLIES 6

dalong
Champ in-the-making
Champ in-the-making
i want to achieve the effect below in activiti 5.16.4 , so i can use jsonrpc bean in script task.
<code>
  <bean class="com.xxx.JsonrpcBean" id="jsonrpc">
    <property value="http://127.0.0.1/jsonrpc" name="baseUrl"/>
  </bean>
</code>

jbarrez
Star Contributor
Star Contributor
We did indeed change from XML -> Java Config in the latest release.
But we do need to write up the docs for this how we can configure this.

The basic idea is that you create a Java config, kinda like what is here: https://github.com/Activiti/Activiti/tree/master/modules/activiti-webapp-explorer2/src/main/java/org...

Or otherwise, you keep using the 5.16.3 release until we've documented it all.

dalong
Champ in-the-making
Champ in-the-making
oh, thank you very much. 
i think i probably understand that we could compile a java code like that with activiti lib to .class file and then put it to ./WEB-INF/classes/org/activiti/explorer/conf.   
in this way, java bean can be much stronger, but compiling may increase the complexity. 
today the deployment is in production environment, so i think i will still use 5.16.3 and wait for the official documentation for 5.16.4.   

jbarrez
Star Contributor
Star Contributor
Yes, that is the best approach. We will revise the docs and also think about easy ways of extending it and adding custom logic.

tan-tan
Champ in-the-making
Champ in-the-making
Any news regarding official documentation?

jbarrez
Star Contributor
Star Contributor