JBPM4.4源码与设计模式

processEnginee中有2个
transient protected ThreadLocal<List<UserProvidedEnvironmentObject>> userProvidedEnvironmentObjectsThreadLocal = new ThreadLocal<List<UserProvidedEnvironmentObject>>();
transient protected ThreadLocal<String> authenticatedUserIdThreadLocal = new ThreadLocal<String>();

看来是在这个地方进行多线程处理

在进这个之前,发现有一个地方,出现classnotfound的错误,但是在console的端口上没有显示。

执行这个内容的时候
userCommandService.execute(new CheckDbCmd());

出现Throwable的问题。估计是拦截器进行了拦截。

public class WireParser extends Parser {

public static final String[] DEFAULT_WIRE_BINDING_RESOURCES = new String[]{
"jbpm.wire.bindings.xml",
"jbpm.user.wire.bindings.xml"
};

构建责任链的位置
在CommandServiceDescriptor类中的
public Object construct(WireContext wireContext) 方法中有
Interceptor interceptor = (Interceptor) descriptor.construct(wireContext);

2013年3月22日,补充。
Hibernate的xml配置中,发现taskimpl类中的
protected Long executionDbid;
protected Long superTaskDbid;
protected boolean isNew;
在xml中,没有映射。那么就是没有在数据库中进行存储。
另外,有几个属性是父类的属性,他也进行了xml配置映射到数据库的列中。

taskimpl是属于领域对象,它与dbsession之间形成双重依赖。与贫血模式的架构明显不同
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值