public String getDescription() { if ( isUnconditional() ) { return BaseMessages.getString( PKG, "JobHopMeta.Msg.ExecNextJobEntryUncondition" ); } else { if ( getEvaluation() ) { return BaseMessages.getString( PKG, "JobHopMeta.Msg.ExecNextJobEntryFlawLess" ); } else { return BaseMessages.getString( PKG, "JobHopMeta.Msg.ExecNextJobEntryFailed" ); } } }
if ( jobHop.isUnconditional() ) { hopsIcon = EImage.UNCONDITIONAL; } else {
case JOB_HOP_ICON: hi = (JobHopMeta) areaOwner.getOwner(); if ( hi.isUnconditional() ) { tipImage = GUIResource.getInstance().getImageUnconditionalHop(); tip.append( BaseMessages.getString( PKG, "JobGraph.Hop.Tooltip.Unconditional", hi ? BaseMessages.getString( PKG, "JobGraph.Dialog.HopInfo.Enable" ) : BaseMessages.getString( PKG, "JobGraph.Dialog.HopInfo.Disable" ) ) ); if ( hi.isUnconditional() ) { tipImage = GUIResource.getInstance().getImageUnconditionalHop(); } else {
public void saveJobHopMeta( JobHopMeta hop, ObjectId id_job ) throws KettleException { try { ObjectId id_jobentry_from = null; ObjectId id_jobentry_to = null; id_jobentry_from = hop.getFromEntry() == null ? null : hop.getFromEntry().getObjectId(); id_jobentry_to = hop.getToEntry() == null ? null : hop.getToEntry().getObjectId(); // Insert new job hop in repository // hop.setObjectId( insertJobHop( id_job, id_jobentry_from, id_jobentry_to, hop.isEnabled(), hop .getEvaluation(), hop.isUnconditional() ) ); } catch ( KettleDatabaseException dbe ) { throw new KettleException( BaseMessages.getString( PKG, "JobHopMeta.Exception.UnableToSaveHopInfoRep", "" + id_job ), dbe ); } }
if ( hi.isUnconditional() ) { nextComment = BaseMessages.getString( PKG, "Job.Comment.FollowedUnconditional" ); } else { if ( hi.isUnconditional() || ( jobEntryCopy.evaluates() && ( !( hi.getEvaluation() ^ newResult .getResult() ) ) ) ) {
arrow = EImage.ARROW_CANDIDATE; } else if ( jobHop.isEnabled() ) { if ( jobHop.isUnconditional() ) { col = EColor.HOP_DEFAULT; arrow = EImage.ARROW_DEFAULT;
hopNode.setProperty( JOB_HOP_ENABLED, hop.isEnabled() ); hopNode.setProperty( JOB_HOP_EVALUATION, hop.getEvaluation() ); hopNode.setProperty( JOB_HOP_UNCONDITIONAL, hop.isUnconditional() );
if ( hi.isUnconditional() ) { miPopEvalUncond.setSelected( true ); miPopEvalTrue.setSelected( false );
JobHopMeta hop = (JobHopMeta) areaOwner.getOwner(); if ( hop.getFromEntry().evaluates() ) { if ( hop.isUnconditional() ) { hop.setUnconditional( false ); hop.setEvaluation( true );