- Tue Apr 11, 2017 2:53 am
#790235
Hello,
I used following code for generating output document.
Above code generates output document. Task1 raised a case, task2 approved it then task3 approved case. When case is approved by task3 it is completed and In participated case of task3 can see generated document, but task1 can't see it How to solve this problem?
Thanks & Regards
I used following code for generating output document.
Code: Select all
In my process, there are 3 task. task1->task2->task3.$outDocId = '96578979458995b9f6afb04041036087';
$caseId = @@APPLICATION;
PMFGenerateOutputDocument($outDocId);
$query = "SELECT APP_DOC_UID FROM APP_DOCUMENT WHERE APP_UID='$caseId' AND
DOC_UID='$outDocId' AND APP_DOC_STATUS='ACTIVE'";
$result = executeQuery($query);
if (!is_array($result) or count($result) == 0) {
die("Error: Unable to find generated Output Document in database.");
}
$d = new AppDocument();
$aFile = $d->Load( $result[1]['APP_DOC_UID'] );
@@outDocUrl = 'http://' . $_SERVER['SERVER_NAME'] .
//':' . $_SERVER['SERVER_PORT'] .
'/sys'. @@SYS_SYS . '/en/neoclassic/cases/cases_ShowOutputDocument?a=' .
$aFile['APP_DOC_UID'] . '&v='. $aFile['DOC_VERSION'] . '&ext=pdf';
@@outDocFilename = $aFile['APP_DOC_FILENAME'] .'_'. $aFile['DOC_VERSION'] .'.pdf';
Above code generates output document. Task1 raised a case, task2 approved it then task3 approved case. When case is approved by task3 it is completed and In participated case of task3 can see generated document, but task1 can't see it How to solve this problem?
Thanks & Regards