JbpmConfiguration学习

java 代码
  1. configuration of one jBPM instance   
  2.   
  3. During process execution, jBPM might need to use some services.     
  4. A JbpmConfiguration contains the knowledge on how to create those services.   
  5.   
  6. A JbpmConfiguration is a thread safe object and serves as a factory for    
  7. {@link org.jbpm.JbpmContext}s, which means one JbpmConfiguration    
  8. can be used to create {@link org.jbpm.JbpmContext}s for all threads.    
  9. The single JbpmConfiguration can be maintained in a static member or    
  10. in the JNDI tree if that is available.   
  11.   
  12. A JbpmConfiguration can be obtained in following ways:   
  13.   
  14. from a resource (by default jbpm.cfg.xml is used):   
  15. JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();   
  16.   
  17. or   
  18.   
  19. String myXmlResource = "...";   
  20. JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance(myXmlResource);
     
        
  21.   
  22. from an XML string:   
  23. JbpmConfiguration jbpmConfiguration = JbpmConfiguration.parseXmlString(   
  24. "<jbpm-configuration></jbpm-configuration>" +   
  25.  ...   
  26. ""  
  27.   
  28. By specifying a custom implementation of an object factory.  This can be    
  29. used to specify a JbpmConfiguration in other bean-style notations such as    
  30. used by JBoss Microcontainer or Spring.   
  31. ObjectFactory of = new MyCustomObjectFactory();   
  32. JbpmConfiguration.Configs.setDefaultObjectFactory(of);   
  33. JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();   
  34.   
  35.   
  36. jbpmConfigurations can be configured using a spring-like XML notation   
  37. (in relax ng compact notation):   
  38.   
  39. main method:   
  40. ========>createSchema()   
  41. ========>dropSchema()   
  42. ========>createJbpmContext()   
  43. ========>getCurrentJbpmContext()  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值