Ejemplo n.º 1
0
 protected void checkValidity(Xpdl xpdl) {
   super.checkValidity(xpdl);
   int nr =
       (startEvent != null ? 1 : 0)
           + (intermediateEvent != null ? 1 : 0)
           + (endEvent != null ? 1 : 0);
   if (nr > 1) {
     xpdl.log(tag, lineNumber, "Expected only one type of event");
   }
 }
Ejemplo n.º 2
0
 protected void checkValidity(Xpdl xpdl) {
   super.checkValidity(xpdl);
   checkRequired(xpdl, "TransactionId", transactionId);
   checkRequired(xpdl, "TransactionProtocol", transactionProtocol);
   checkRestriction(
       xpdl,
       "TransactionMethod",
       transactionMethod,
       Arrays.asList("Compensate", "Store", "Image"),
       true);
 }