def METHOD_NAME(headers, body):
    task_id, task_name = headers.get('id'), headers.get('task')
    task = app.tasks.get(task_name)
    if not task:
        raise ValueError('Task not found: {}'.format(task_name))
    activity_callback = getattr(task, 'activity_callback', None)
    if not callable(activity_callback):
        return [], '', ''
    args, kwargs = body[:2]
    data = activity_callback(*args, **kwargs)
    if data is None:
        return [], '', ''
    resource_ids, org_id, user = data + ('',) * (3 - len(data))
    if not user:
        user = str(current_request.user) if current_request else 'System'
    if not org_id:
        org_id = current_org.id
    task_display = getattr(task, 'verbose_name', _('Unknown'))
    detail = i18n_fmt(
        gettext_noop('User %s perform a task for this resource: %s'),
        user, task_display
    )
    return resource_ids, detail, org_id