/**
   * Save Selection
   *
   * @return asi which was saved or null
   * @return true if saved
   */
  private MAttributeSetInstance saveSelection() {
    final IMutable<MAttributeSetInstance> asiRef = new Mutable<>();
    trxManager.run(
        new TrxRunnableAdapter() {
          @Override
          public void run(String localTrxName) throws Exception {
            final MAttributeSetInstance asi = saveSelection0();
            asiRef.setValue(asi);
          }
        });

    return asiRef.getValue();
  }
Ejemplo n.º 2
0
  public I_M_HU createHU(final I_M_HU_Item parentHUItem) {
    final IMutable<I_M_HU> huRef = new Mutable<>();
    Services.get(ITrxManager.class)
        .run(
            getContext().getTrxName(),
            new TrxRunnableAdapter() {

              @Override
              public void run(final String localTrxName) {
                final I_M_HU hu = createHU_InTrx(parentHUItem);
                huRef.setValue(hu);
              }
            });

    return huRef.getValue();
  }
Ejemplo n.º 3
0
 public I_M_HU getCapturedHU() {
   Check.assumeNotNull(_huToSetRef, "Expectation {} was not configured to capture HU", this);
   return _huToSetRef.getValue();
 }