The W3C working group on rules has a standard for "reaction rules with actions" in its Rules Interchange Format. It is based on RuleML which is now the RIF Production Rule Dialect, "a standard XML serialization format for production rule languages." Overall, it seems like an appropriate markup that would have the most benefit for transforming imported and exported rules between ECA based software.

Comments

fago’s picture

Status: Active » Postponed

I don't think RIF is ready for reaction rules, there is reaction rule ml though. Anyway such an import/export format doesn't help if the underlying rules integration is not aware to other systems. But the export/import could work with the basic data modification actions. Still - for now, postponed.

mitchell’s picture

Component: Rules Engine » Rules Core
Status: Postponed » Closed (won't fix)

Because this issue hasn't been updated recently, I'm closing it to clear up space in the issue queue. However, if you would still like to submit another support request or help answer other support requests, your efforts would be welcomed and appreciated. If you already found an answer, you can update the Rules documentation. If not, you may find that a recent update to the docs has provided more information, or that another issue has been fixed that you can find using the issue queue search tools.

mitchell’s picture

Title: Support semantic imports and exports » [Meta] Interchange with other rules languages by aligning concepts
Status: Closed (won't fix) » Active

Developments to Rules' reaction rule support that have paved the way since Rules 1 include execute links on components, Rules Links, schedules (well that was there), if/then/else, and switch/case. These all show that Rules is more powerful than ECA and that it can 'speak' in other Rules dialects. We could reflect this not only in the code but in the documentation, saying that Rules supports multiple types of configurations (or the RIF gambit Core, BLD, DTB) and potentially other languages, meaning import/export from other vocabularies. All we need for this is a common conceptual grounding which would then imply that Rules is an RIF implementation or RIF compatible.

We don't need to go out of our way to write transforms for R2ML, RIF-PRD, or any other format but to see where we are already, compare these examples of a RuleML Production Rule with a Rules If/Then/Else rule. The overlap is to be expected, but the similarities are uncanny, and Production Rules aren't the only available example like this.

The least we can do to accomplish this is nail down some 'example phrases' of the Drupal Rules framework dialects similar to the snippets in those language project wikis and the links above. We would need to nail down the properties of different types of rules and align our terminologies and then relate the syntaxes. It doesn't make sense too focus on doing actual translations for import/export yet, but once there is an RDF entity storage backend this will be a widely desirable feature. At least in the meantime, we are getting closer with Views being able to read XML (https://drupal.org/project/views_xml_backend) and JSON (https://drupal.org/sandbox/clevername/1630546) data, so in terms of working on compatibility with those exports and doing the Rules part for becoming a building block in the prescribed semantic web layer cake with inter-changeable semantic web frameworks, Views Rules could read configurations and then Rules could create rules, see [#: Add Rule Entity properties and CRUD support].

mitchell’s picture

Component: Rules Core » Documentation
Category: feature » task
TR’s picture

Version: 7.x-2.x-dev » 8.x-3.x-dev
Issue summary: View changes
Status: Active » Postponed

I'm not opposed to this, but it's going to require someone to do the work and contribute code. Postponing this issue as a practical statement that the maintainers are not working on this, and there is not likely to be any movement unless someone comes forward and volunteers. Likewise, it's not going into D7 at this late point in the development cycle, so if you're interested please focus on D8.