You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/10/24 10:34:00 UTC

[jira] [Assigned] (CAMEL-18641) Python not available in the Java DSL

     [ https://issues.apache.org/jira/browse/CAMEL-18641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-18641:
-----------------------------------

    Assignee: Claus Ibsen

> Python not available in the Java DSL
> ------------------------------------
>
>                 Key: CAMEL-18641
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18641
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 3.19.0
>            Reporter: Raymond
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 3.20.0
>
>
>  
> Since the last release (3.19.0) Camel supports Python experimentally. That's great.
>  
> I like to test it out, here are some things I noticed.
>  
> 1) In IntelliJ it doesn't seem to recognize "python" in the Java DSL yet (is it part of the DSL model?) For example:
> {code:java}
>  .choice()
> .when(python("myexpression")).to("mock:endpoint")
> {code}
> or
>  
> {code:java}
> .setBody().python("myexpresson"){code}
>  
> isn't allowed. Other languages are recognized and Intellij points to 3.19.0.
>  
> 2) Examples
>  
> Would be nice if some examples were added to the documentation:
>  
> [https://camel.apache.org/components/next/languages/python-language.html]
>  
> For me, and I think for most users, it's hard to find out how to use it.
> 3) Version
>  
> It's unclear what Python version is used. It's based on Jython. The latest version of Jython is 2.7.3. Does that mean Python 2.x is used, or can we use Python 3 syntax?
>  4) Jira
> The component "camel-python" is not selectable.
>  
> BTW: Another minor thing I noticed (not specifically related to Python) is that version 3.19.0 is at the moment not available as select on the documentation page. So I could only see the python documentation in 'next'.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)