I am enabling flag with different statuses to flag content through a workflow.

how can I integrate this with maestro so I can have people approve and check to see if payment has been made or make the payment upon approval?

are there hooks that I can use to create a custom module for either commerce or flag?

Thanks!

PS. This looks great. Will you be at Badcamp in Berkeley?!?

Comments

blainelang’s picture

You can use rules to launch a maestro workflow as an action or you can use the maestro API to launch a workflow template.

    $maestro = Maestro::createMaestroObject(1);
    $newprocess = $maestro->engine()->newProcess($template);  // where $template is the maestro template id

There are other maestro engine methods to set process variables and your workflow can use custom tasks that are either batch or interactive (like approvals, review, or other user input/moderation)