I have a BPM that I want to trigger when a job is released. I put this BPM in the JobEntry.ChangeJobHeadJobReleased BO.Method. I’ve tried this in both Pre and Post Processing and in both the BPM fires both when I check and uncheck the box. The trace data says this:
<paramDataSet name="ds" useDataSetNbr="0">
<changedValue tableName="JobHead" rowState="Modified" rowNum="0" colName="JobReleased"><! [CDATA[True]]></changedValue>
<changedValue tableName="JobHead" rowState="Modified" rowNum="0" colName="UD_SysRevID"><! [CDATA[System.Byte[]]]></changedValue>
my BPM starts out this way, and triggers both when I check and uncheck the released checkbox on the Job Entry screen
foreach( var ttJobHead_iterator in (from ttJobHead_Row in ttJobHead
where ttJobHead_Row.JobReleased == true &&
ttJobHead_Row.RowMod == IceRow.ROWSTATE_ADDED ||
ttJobHead_Row.RowMod == IceRow.ROWSTATE_UPDATED
select ttJobHead_Row))
{
var ttJobHeadRow = ttJobHead_iterator;
how do I get this to only fire when the release checkbox is checked?