QQQ-21 update qqq-backend-core for process function->step refactor

This commit is contained in:
2022-07-08 12:06:52 -05:00
parent c75cd7eec9
commit 8a2cb95a07
3 changed files with 5 additions and 4 deletions

View File

@ -181,8 +181,8 @@
</module> </module>
--> -->
<module name="OverloadMethodsDeclarationOrder"/> <module name="OverloadMethodsDeclarationOrder"/>
<module name="VariableDeclarationUsageDistance"/>
<!-- <!--
<module name="VariableDeclarationUsageDistance"/>
<module name="CustomImportOrder"> <module name="CustomImportOrder">
<property name="sortImportsInGroupAlphabetically" value="true"/> <property name="sortImportsInGroupAlphabetically" value="true"/>
<property name="separateLineBetweenGroups" value="true"/> <property name="separateLineBetweenGroups" value="true"/>

View File

@ -384,9 +384,10 @@ public class QPicoCliImplementation
subCommandLine.getOut().format(" %s: %s\n", outputField.getLabel(), result.getValues().get(outputField.getName())); subCommandLine.getOut().format(" %s: %s\n", outputField.getLabel(), result.getValues().get(outputField.getName()));
} }
if(result.getError() != null) if(result.getException().isPresent())
{ {
subCommandLine.getOut().println("Process Error message: " + result.getError()); // todo - user-facing, similar to javalin
subCommandLine.getOut().println("Process Error message: " + result.getException().get().getMessage());
} }
} }
catch(Exception e) catch(Exception e)

View File

@ -169,7 +169,7 @@ public class TestUtils
.withCode(new QCodeReference() .withCode(new QCodeReference()
.withName(MockBackendStep.class.getName()) .withName(MockBackendStep.class.getName())
.withCodeType(QCodeType.JAVA) .withCodeType(QCodeType.JAVA)
.withCodeUsage(QCodeUsage.FUNCTION)) // todo - needed, or implied in this context? .withCodeUsage(QCodeUsage.BACKEND_STEP)) // todo - needed, or implied in this context?
.withInputData(new QFunctionInputMetaData() .withInputData(new QFunctionInputMetaData()
.withRecordListMetaData(new QRecordListMetaData().withTableName("person")) .withRecordListMetaData(new QRecordListMetaData().withTableName("person"))
.withFieldList(List.of( .withFieldList(List.of(