Project

General

Profile

1
 /*
2
  *   '$RCSfile$'
3
  *     Purpose: Basic funtions to support showing the schedule workflows 
4
  *              pages
5
  *   Copyright: 2009 Regents of the University of California and the
6
  *               National Center for Ecological Analysis and Synthesis
7
  *     Authors: Michael Daigle
8
  *
9
  *    '$Author: leinfelder $'
10
  *      '$Date: 2008-06-17 13:16:32 -0700 (Tue, 17 Jun 2008) $'
11
  *  '$Revision: 4006 $'
12
  *
13
  * This program is free software; you can redistribute it and/or modify
14
  * it under the terms of the GNU General Public License as published by
15
  * the Free Software Foundation; either version 2 of the License, or
16
  * (at your option) any later version.
17
  *
18
  * This program is distributed in the hope that it will be useful,
19
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
  * GNU General Public License for more details.
22
  *
23
  * You should have received a copy of the GNU General Public License
24
  * along with this program; if not, write to the Free Software
25
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
  */ 
27
  
28
/* puts together the url to get the workflow section of a page given the workflow 
29
 * id.  
30
 *  Params:
31
 *    url - metacat url to hit
32
 *    workflowId - lsid of the workflow
33
 *    karid - the lsid of the kar file which contains the workflow
34
 *    sessionid - id of the session
35
 *    authServiceURL - the url of the authentication service
36
 *    authorizationURL - the url of the authorization service
37
 *    workflowName - used for display purposes.  
38
 *    divId - the name of the div where the results should be put
39
 */  
40
function getWorkflowRunSection(url, workflowId, workflowName, karid, sessionid,  authServiceURL, authorizationURL, divId) {
41
	var requestUrl = url + '?action=getScheduledWorkflow&workflowid=' + workflowId +'&karid='+karid+ '&qformat=sanparks&workflowname=' + workflowName
42
	                             +'&sessid='+sessionid+'&authServiceURL='+authServiceURL+'&authorizationURL='+authorizationURL;
43
	//alert('getWorkflowRunSection - url: ' + url + ' workflowId: ' + workflowId + ' workflowName: ' + workflowName + ' divId: ' + divId+' karid: '+karid+' authServiceURL: '+authServiceURL+'authorizationURL: '+authorizationURL);
44
	var submitResults = submitUrlIntoDiv(requestUrl, divId);
45
}
46

    
47
	
(25-25/33)