Skip to content

Can cel-java support skipping the type checker , just like the Aviator framework #839

Closed as duplicate

Description

@tianhuang101

My usage scenario is as follows:

I am developing a visual and draggable node workflow platform based on LLM applications, where two node types are related to this issue.

One is the HTTP calling node, and the results returned by HTTP calls are all JSON strings, and I cannot exhaustively list the JSON structures of the return results of endpoints configured by different users.

The other is the HTTP call result verification node, which allows users to fill in a cel expression to check whether the result of the previous HTTP call node meets expectations.

Let me show an example, if the result returned by the HTTP calling node is a JSON string:

{
     "status": 1,
     "msg ":" Success ",
     "data": {
          "jobId": 123
      }
} 

This JSON will be converted into a map and used as a variable in the eval method.

The CEL configured for the HTTP result verification node is data.jobId! = null && status ==1
If I cannot skip the variable type check validation, I must extract each key from the JSON string returned by HTTP calling result, map the type of value to celType, and finally use addVar method to CelCompiler.

This is really troublesome, so can I skip the type checker without setting addVar at the same time.

Or is there any other usage posture?

Activity

  1. changed the title [-]Can it support skipping variable type checks[/-] [+]Can cel-java support skipping the type checker , just like the Aviator framework for simple usage[/+] on Oct 10, 2025
  2. changed the title [-]Can cel-java support skipping the type checker , just like the Aviator framework for simple usage[/-] [+]Can cel-java support skipping the type checker , just like the Aviator framework[/+] on Oct 10, 2025
  3. l46kok commented on Oct 10, 2025

    @l46kok
    Collaborator

    If you have the option of populating your json map into a variable, you would just have to declare the variable once (ex: json_var.data.jobId)

    Direct evaluation of parsed-only expressions is not supported in CEL-Java at the moment, I'm afraid. See: #276

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions