예제 #1
0
 public ProtobufMessages.ActionQueue.Action serialize(MarshallerWriteContext context) {
   return ProtobufMessages.ActionQueue.Action.newBuilder()
       .setType(ProtobufMessages.ActionQueue.ActionType.DEACTIVATE_CALLBACK)
       .setDeactivateCallback(
           ProtobufMessages.ActionQueue.DeactivateCallback.newBuilder()
               .setRuleflowGroup(ruleFlowGroup.getName())
               .build())
       .build();
 }
예제 #2
0
 public DeactivateCallback(
     MarshallerReaderContext context, ProtobufMessages.ActionQueue.Action _action) {
   this.ruleFlowGroup =
       (InternalRuleFlowGroup)
           context
               .wm
               .getAgenda()
               .getRuleFlowGroup(_action.getDeactivateCallback().getRuleflowGroup());
 }
예제 #3
0
 public ProtobufMessages.ActionQueue.Action serialize(MarshallerWriteContext context) {
   return ProtobufMessages.ActionQueue.Action.newBuilder()
       .setType(ProtobufMessages.ActionQueue.ActionType.EXPIRE)
       .setExpire(
           ProtobufMessages.ActionQueue.Expire.newBuilder()
               .setHandleId(this.factHandle.getId())
               .setNodeId(this.node.getId())
               .build())
       .build();
 }
예제 #4
0
    public ProtobufMessages.ActionQueue.Action serialize(MarshallerWriteContext context) {
      ProtobufMessages.ActionQueue.Assert.Builder _assert =
          ProtobufMessages.ActionQueue.Assert.newBuilder();
      _assert
          .setHandleId(this.factHandle.getId())
          .setRemoveLogical(this.removeLogical)
          .setUpdateEqualsMap(this.updateEqualsMap);

      if (this.leftTuple != null) {
        ProtobufMessages.Tuple.Builder _tuple = ProtobufMessages.Tuple.newBuilder();
        for (LeftTuple entry = this.leftTuple; entry != null; entry = entry.getParent()) {
          _tuple.addHandleId(entry.getLastHandle().getId());
        }
        _assert
            .setOriginPkgName(ruleOrigin.getPackageName())
            .setOriginRuleName(ruleOrigin.getName())
            .setTuple(_tuple.build());
      }
      return ProtobufMessages.ActionQueue.Action.newBuilder()
          .setType(ProtobufMessages.ActionQueue.ActionType.ASSERT)
          .setAssert(_assert.build())
          .build();
    }