Beispiel #1
0
def create_accept_decline_message_component():
    return AcceptDecline().as_json()
Beispiel #2
0
def append_accept_decline_message_component(message):
    message = Message.from_json(message)
    message.append(AcceptDecline())
    return message.as_json()
Beispiel #3
0
def basic_request_user_approval(users=None, roles=None):
    text = Text('A workflow requires your authentication')
    message = Message(subject='Workflow awaiting approval',
                      body=[text, AcceptDecline()])
    send_message(message, users=users, roles=roles)
    return 'success'