# Transaction groups triggered expression item updating when trigger is false

**URL:** <https://forum.inductiveautomation.com/t/transaction-groups-triggered-expression-item-updating-when-trigger-is-false/17196>\
**Category:** Ignition\
**Created:** [March 2, 2018, 3:35pm UTC](https://forum.inductiveautomation.com/t/transaction-groups-triggered-expression-item-updating-when-trigger-is-false/17196 "2018-03-02T15:35:43Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 15, 2018, 7:52pm UTC](https://forum.inductiveautomation.com/t/transaction-groups-triggered-expression-item-updating-when-trigger-is-false/17196/14 "2018-03-15T19:52:40Z")

</div>

Ok, so I’ve been down the rabbit hole and found Ignition’s (undocumented) PyComponentWrapper. I haven’t deciphered it enough to be sure, but it seems to be invoked only for particular situations, based on the string constants in the class file (like “getComponent” and “getComponents”).  
To play with this, I constructed a conversion adapter like so:

```java
public class PyComponentAdapter implements PyObjectAdapter {

	public PyComponentAdapter() {}

	@Override
	public boolean canAdapt(Object jObj) {
		return JComponent.class.isInstance(jObj);
	}

	@Override
	public PyObject adapt(Object jObj) {
		return new PyComponentWrapper(jObj);
	}
}

```

Followed by this initializer in my hook class:

```auto
static {
	Py.getAdapter().addPostClass(new PyComponentAdapter());
}

```

Which yielded [this](https://www.automation-pros.com/ignition/Simulation%20Aids-1.7.7.1803151937.modl) **_beta_** version of Simulation Aids. Your first expression above yields True/True with it. Give it a spin. I’m not entirely sure there isn’t a gotcha here, but it appears to work.  
I’ll bet PyComponentWrapper could be simplified if this was adopted by IA in the base product.

Edit: See the newer version below. The March 15 version has been removed.

---

_[View the full topic](https://forum.inductiveautomation.com/t/transaction-groups-triggered-expression-item-updating-when-trigger-is-false/17196)._
