ActionWorkItemFieldValue val = new ActionWorkItemFieldValue( sf.getFactField(), sf.getType(), sf.getWorkItemName(),
ActionWorkItemFieldValue val = new ActionWorkItemFieldValue( sf.getFactField(), sf.getType(), sf.getWorkItemName(),
private void doAction(List<LabelledAction> actions, ActionWorkItemInsertFactCol52 ac, String cell) { if ( Boolean.TRUE.equals( Boolean.parseBoolean( cell ) ) ) { LabelledAction a = findByLabelledAction( actions, ac.getBoundName() ); if ( a == null ) { a = new LabelledAction(); a.boundName = ac.getBoundName(); if ( !ac.isInsertLogical() ) { ActionInsertFact ins = new ActionInsertFact( ac.getFactType() ); ins.setBoundName( ac.getBoundName() ); a.action = ins; } else { ActionInsertLogicalFact ins = new ActionInsertLogicalFact( ac.getFactType() ); ins.setBoundName( ac.getBoundName() ); a.action = ins; } actions.add( a ); } ActionInsertFact ins = (ActionInsertFact) a.action; ActionWorkItemFieldValue val = new ActionWorkItemFieldValue( ac.getFactField(), ac.getType(), ac.getWorkItemName(), ac.getWorkItemResultParameterName(), ac.getParameterClassName() ); ins.addFieldValue( val ); } }
private void doAction(List<LabelledAction> actions, ActionWorkItemInsertFactCol52 ac, String cell) { if ( Boolean.TRUE.equals( Boolean.parseBoolean( cell ) ) ) { LabelledAction a = findByLabelledAction( actions, ac.getBoundName() ); if ( a == null ) { a = new LabelledAction(); a.boundName = ac.getBoundName(); if ( !ac.isInsertLogical() ) { ActionInsertFact ins = new ActionInsertFact( ac.getFactType() ); ins.setBoundName( ac.getBoundName() ); a.action = ins; } else { ActionInsertLogicalFact ins = new ActionInsertLogicalFact( ac.getFactType() ); ins.setBoundName( ac.getBoundName() ); a.action = ins; } actions.add( a ); } ActionInsertFact ins = (ActionInsertFact) a.action; ActionWorkItemFieldValue val = new ActionWorkItemFieldValue( ac.getFactField(), ac.getType(), ac.getWorkItemName(), ac.getWorkItemResultParameterName(), ac.getParameterClassName() ); ins.addFieldValue( val ); } }
aif.setBoundName( "$r" ); aif.factType = "Results"; ActionWorkItemFieldValue fv1 = new ActionWorkItemFieldValue( "ResultsBooleanResult", SuggestionCompletionEngine.TYPE_BOOLEAN, "WorkItem", Boolean.class.getName() ); aif.addFieldValue( fv1 ); ActionWorkItemFieldValue fv2 = new ActionWorkItemFieldValue( "ResultsFloatResult", SuggestionCompletionEngine.TYPE_NUMERIC_FLOAT, "WorkItem", Float.class.getName() ); aif.addFieldValue( fv2 ); ActionWorkItemFieldValue fv3 = new ActionWorkItemFieldValue( "ResultsIntegerResult", SuggestionCompletionEngine.TYPE_NUMERIC_INTEGER, "WorkItem", Integer.class.getName() ); aif.addFieldValue( fv3 ); ActionWorkItemFieldValue fv4 = new ActionWorkItemFieldValue( "ResultsStringResult", SuggestionCompletionEngine.TYPE_STRING, "WorkItem",
ActionWorkItemFieldValue fv1 = new ActionWorkItemFieldValue( "ResultsBooleanResult", SuggestionCompletionEngine.TYPE_BOOLEAN, "WorkItem", Boolean.class.getName() ); asf.addFieldValue( fv1 ); ActionWorkItemFieldValue fv2 = new ActionWorkItemFieldValue( "ResultsFloatResult", SuggestionCompletionEngine.TYPE_NUMERIC_FLOAT, "WorkItem", Float.class.getName() ); asf.addFieldValue( fv2 ); ActionWorkItemFieldValue fv3 = new ActionWorkItemFieldValue( "ResultsIntegerResult", SuggestionCompletionEngine.TYPE_NUMERIC_INTEGER, "WorkItem", Integer.class.getName() ); asf.addFieldValue( fv3 ); ActionWorkItemFieldValue fv4 = new ActionWorkItemFieldValue( "ResultsStringResult", SuggestionCompletionEngine.TYPE_STRING, "WorkItem",