Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-1423

[Guided Rule] Can't be opened if constraint to bound field present

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Critical
    • None
    • 7.1.0.GA
    • Business Central
    • +

    Description

      Unable to find source-code formatter for language: mvel. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      package com.myspace.repr;
      
      import java.lang.Number;
      
      rule "rule"
      	dialect "mvel"
      	when
      		DataObject( $stringField : sFieldOne == "something" )
      		DataObjectTwo( sFieldTwo == $stringField )
      	then
      end
      

      Assume the rdrl file above where both sFieldOne and sFieldTwo are both of String type. Then if you try open this rdrl file in workbench the unexpected error dialog appears.

      The same can be seen if we assign role EVENT to DataObject and have this rule below.

      Unable to find source-code formatter for language: mvel. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      package com.myspace.repr;
      
      import java.lang.Number;
      
      rule "eventRule"
      	dialect "mvel"
      	when
      		e1 : DataObject( this after [1m, 2m] "24-Jul-2018" ) over window:time (10d)
      		e2 : DataObject( this before e1 )
      	then
      end
      
      

      Reproducer test

      Attachments

        Issue Links

          Activity

            People

              trikkola Toni Rikkola
              rh-ee-jomarko Jozef Marko
              Jozef Marko Jozef Marko
              Jozef Marko Jozef Marko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: