-
Notifications
You must be signed in to change notification settings - Fork 49
Labels
Description
What happened:
Having the following set of tasks:
function("scoreProposal", (Proposal input) -> {
Integer score = calculateScore(input.abstractText());
System.out.println("Score calculated having the result as: " + score);
return score;
}, Proposal.class)
.outputAs((Integer score) -> {
return new ProposalScore(score, score >= 7);
}, Integer.class),I am receiving the following:
java.lang.ClassCastException: java.lang.Long incompatible with java.lang.IntegerWhat you expected to happen:
To execute the outputAs method.
How to reproduce it:
To create a workflow using the provided tasks.
Reactions are currently unavailable