<?php

require_once '../civicrm.config.php';
require_once 'CRM/Core/Config.php';
require_once 'CRM/Core/Error.php';
$config = CRM_Core_Config::singleton( );

require_once 'CRM/Case/XMLProcessor/Report.php';
$xmlProcessor = new CRM_Case_XMLProcessor_Report( );
$report = $xmlProcessor->getActivityInfo( 102, 552 );
CRM_Core_Error::debug( $report );
exit( );

$xmlProcessor->run( 104, 1, 'Substance Abuse', '15 Day Review' );
$params = array( 'clientID'         => 104,
                 'creatorID'        => 108,
                 'standardTimeline' => 1,
                 'activityTypeName' => 'Open Case',
                 'dueDateTime'      => time( ),
                 'caseID'           => 1,
                 );
require_once 'CRM/Case/XMLProcessor/Process.php';
$xmlProcessor = new CRM_Case_XMLProcessor_Process( );

$result = $xmlProcessor->get( 'Substance Abuse', 'CaseRoles' );
CRM_Core_Error::debug( 'Case Roles', $result );
$result = $xmlProcessor->get( 'Substance Abuse', 'ActivityTypes' );
CRM_Core_Error::debug( 'Activity Types', $result );
$result = $xmlProcessor->get( 'Substance Abuse', 'ActivitySets' );
CRM_Core_Error::debug( 'Activity Sets', $result );

$xmlProcessor->run( 'Substance Abuse',
                    $params );


exit( );

