
$("document").ready(function(){addMetadataTabs();$('#ifLinkedMetadata').load(metadataLoaded);showRelationshipGraph();});function onShowPostTab(ev,ui){showRelationshipGraph();}
function showRelationshipGraph(){var dParams={processId:processId,processHistoryId:null,useFrozen:true};$.ajax({type:'POST',contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(dParams),url:_reposRoot+'/ProcessDefinition.asmx/GetProcessRelationshipsJson',success:function(data){onGotRelationshipJson(data);}});}
function showMetadata(tabName,isDataTab){if(isDataTab)
$('#ifLinkedMetadata').attr('src',_reposRoot+"/ProcessMetadata.aspx?historyId="+historyId+"&t="+cBypass());else
$('#ifLinkedMetadata').attr('src',_reposRoot+"/ProcessLinkMetadata.aspx?&section="+escape(tabName)+"&historyId="+historyId+"&t="+cBypass());}