{"id":24649144,"url":"https://github.com/ow2-proactive/jsr223-scala","last_synced_at":"2025-05-13T11:15:16.696Z","repository":{"id":30566365,"uuid":"125390126","full_name":"ow2-proactive/jsr223-scala","owner":"ow2-proactive","description":"JSR223 script engine for Scala","archived":false,"fork":false,"pushed_at":"2023-09-06T09:40:26.000Z","size":91,"stargazers_count":0,"open_issues_count":2,"forks_count":4,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-13T11:15:02.062Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ow2-proactive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-15T15:45:09.000Z","updated_at":"2023-09-06T09:40:31.000Z","dependencies_parsed_at":"2022-07-26T07:32:29.125Z","dependency_job_id":null,"html_url":"https://github.com/ow2-proactive/jsr223-scala","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ow2-proactive%2Fjsr223-scala","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ow2-proactive%2Fjsr223-scala/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ow2-proactive%2Fjsr223-scala/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ow2-proactive%2Fjsr223-scala/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ow2-proactive","download_url":"https://codeload.github.com/ow2-proactive/jsr223-scala/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253929377,"owners_count":21985804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-25T17:15:57.871Z","updated_at":"2025-05-13T11:15:16.669Z","avatar_url":"https://github.com/ow2-proactive.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsr223-scala\n\nJSR223 script engine for Scala.\n\n## Build\n\n    $\u003e ./gradlew clean build\n\nto generate jsr223-scala\\build\\libs\\jsr223-scala-xx.jar\n\n## Usage\nThis Scala script engine wrapper is discoverable under \"scalaw\" name\n(http://docs.oracle.com/javase/7/docs/technotes/guides/scripting/programmer_guide/index.html).\n\n## Bindings\nUser has access from the scala script to predefined variables, according to the current script context. Here are some of them\n\n    val result = 123\n    val loop = 2\n    val runs = 4\n    val selected = false\n\nConsidering a simple 2-tasks workflow with task_A -\u003e task_B\n\n    // In task_A\n    variables.put(\"AA\", \"aa\")\n    variables.put(\"BB\", Array(1, 2, 3))\n    variables.put(\"CC\", Map(\"name\" -\u003e \"Gromit\", \"likes\" -\u003e \"cheese\", \"id\" -\u003e \"1234\"))\n    val result = Map(0 -\u003e \"abc\", 1 -\u003e \"def\")\n\n    // In task_B\n    println(variables.get(\"AA\")) // aa\n    val arr = variables.get(\"BB\").valueCast[Array[Int]]\n    println(arr(0)) // 1\n    println(variables.get(\"CC\").values) // MapLike.DefaultValuesIterable(Gromit, cheese, 1234)\n    println(variables.get(\"CC\").get(\"name\")) // Some(Gromit)\n    println(results(0).getValue.get(0)) // Some(abc)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fow2-proactive%2Fjsr223-scala","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fow2-proactive%2Fjsr223-scala","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fow2-proactive%2Fjsr223-scala/lists"}