Look into Rules integration. This may also change into Token integration.

  • Events:
    • On group member state change (approve/reject)
    • On global state change (is this necessary if rules supports flag integration now?)
  • Conditions or Tokens?:
    • numeric comparison (built-in already?) Should the module just provide a token, [ona:user_state] and [ona:flag]?
    • [ona:percentage/ratio/whatever]
  • Actions:
    • Modify user state for a node
    • Delete user state for a node (should already be done natively so this is useless?)
    • Modify node state (flag/unflag)

Comments

mradcliffe’s picture

Status: Active » Needs work

Added token support in the latest commit.

  • [node:reviewed] -- number of members that have reviewed the node
  • [node:reviewers] -- number of group members in og_node_approval table for that node
  • [node:approved] -- number of members that have approved the node
  • [node:quorum] -- reviewed / reviewers
  • [node:approved_ratio] -- approved / reviewed
  • [node:approved_ratio_total] -- approved / reviewers

They're not showing up in the text replacement in rules for the default rule however they *still* work.

mradcliffe’s picture

Do I need to have any events (triggers) for rules? The default rule changes publish status on view content, which works really well already. I don't think I need this.

How about actions?

mradcliffe’s picture

Title: Rules Integration » Rules/Token Integration
mradcliffe’s picture

Status: Needs work » Fixed

I'm going to close this for now. I think with the default rule that comes with rules a user can accomplish most of what they need via numeric comparisons provided by token.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.