Skip to content

Commit

Permalink
Merge pull request #23 from matthewtckr/suspended
Browse files Browse the repository at this point in the history
Update Suspended Tickets Output step
  • Loading branch information
Matt Tucker authored Mar 21, 2017
2 parents 47159c7 + b07f57b commit bd31a8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public boolean processRow( StepMetaInterface smi, StepDataInterface sdi ) throws
if ( first ) {
data.ticketFieldNameIndex = getInputRowMeta().indexOfValue( meta.getTicketFieldName() );
first = false;
data.outputRowMeta = getInputRowMeta().clone();
meta.getFields( data.outputRowMeta, getStepname(), null, null, this, repository, metaStore );
}

Long ticketId = (Long) r[data.ticketFieldNameIndex];
Expand All @@ -65,6 +67,7 @@ public boolean processRow( StepMetaInterface smi, StepDataInterface sdi ) throws
data.conn.deleteSuspendedTicket( ticketId );
break;
}
putRow( data.outputRowMeta, r );
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@

package org.pentaho.di.trans.steps.zendesk;

import org.pentaho.di.core.row.RowMetaInterface;

public class ZendeskOutputSuspendedTicketsData extends ZendeskInputData {

int ticketFieldNameIndex;
RowMetaInterface outputRowMeta;
}

0 comments on commit bd31a8f

Please sign in to comment.