Nussknacker 0.2.2 : issue when adding supprocess to my process.

17 views
Skip to first unread message

mathieu...@diginext.fr

unread,
Nov 27, 2020, 6:16:48 AM11/27/20
to Nussknacker

Hi all !

I'm still working on NussKnacker 0.2.2., and I'm facing an issue while trying to use the subprocess featrue : When I add a subprocess to my process, I lose all auto-completion functionnalities in the process nodes (even access to #meta and #UTILS):

In the following example, I've reduced the complexity of the processes to find out what could be the cause of the bug. The screenshots can be found in the enclosed document

Please also find enclosed the json export of the subprocess.


When no subprocess is added, everything is fine in the filter node details
but when I import my subprocess, auto completion doesn't work any more.

For exemple, in the filter details view , the only proposition is #input, and it's even not recognized by the syntax (hidden message is "Failed to parse expression: Unresolved reference 'input'"):

Do you have any idea of what could be the issue? Could it be a misuse of NK ?

Furthermore, I can see in the logs of the NK server the following log entry : I don't know if it could be linked to this issue, and I don't really understand it. Could you please explain it to me ?

11:37:54.830 [nussknacker-ui-akka.actor.default-dispatcher-11] WARN  p.t.n.e.c.CompilationResult$$anon$2 - Merging different input validation context for the same node ids: ValidationContext(Map(),Map(UTIL -> TypedClass(class fr.diginext.mbx.rtmcep.nussknacker.utils.UtilProcessHelper,List()), meta -> TypedObjectTypingResult(Map(processName -> TypedClass(class java.lang.String,List()), properties -> TypedObjectTypingResult(Map(),TypedClass(interface java.util.Map,List(TypedClass(class java.lang.String,List()), Unknown)))),TypedClass(interface java.util.Map,List(TypedClass(class java.lang.String,List()), Unknown)))),None) != ValidationContext(Map(input -> Unknown),Map(UTIL -> TypedClass(class fr.diginext.mbx.rtmcep.nussknacker.utils.UtilProcessHelper,List()), meta -> TypedObjectTypingResult(Map(processName -> TypedClass(class java.lang.String,List()), properties -> TypedObjectTypingResult(Map(),TypedClass(interface java.util.Map,List(TypedClass(class java.lang.String,List()), Unknown)))),TypedClass(interface java.util.Map,List(TypedClass(class java.lang.String,List()), Unknown)))),None). This can be a bug in code or duplicated node ids with different input validation contexts

Thanks a lot for yout help, and best regards.
--

.
mine-4.json
bug_description.odt

maciek.p...@gmail.com

unread,
Nov 27, 2020, 8:23:05 AM11/27/20
to Nussknacker
Hi Mathieu,

Currently we have some problems with validation and syntax completion when process is not finished correctly - that is, with sink. In your case, the process is ended with subprocess which has output. Could you please check if problem persists if you add sink after subprocess?
As for WARN in logs, we'll have a second look, but I guess it's not connected to your problem

thanks,
maciek

mathieu...@diginext.fr

unread,
Nov 27, 2020, 9:30:16 AM11/27/20
to Nussknacker
You're right !

Adding a sink made me get back the syntax completion !

Thank you for your quick answer.

Best regards,
--
Reply all
Reply to author
Forward
0 new messages