Notes
Notes - notes.io |
From bpm_run_processes runProc
join bpm_run_steps runStep
join bpm_def_steps stepDef
left join cmn_captions_nls nameStep
on stepDef.id = nameStep.pk_id and nameStep.language_code = 'pt' and nameStep.table_name = 'BPM_DEF_STEPS'
on runStep.step_id = stepDef.id
Join bpm_run_step_action_results runStepAct
join cal_action_items ai
join cal_action_item_assignees aiAss
join cmn_sec_users usr
on aiAss.assignee_id = usr.id
on ai.id = aiAss.cal_action_item_id and aiAss.status_code != 'CAL_CLOSED'
on runStepAct.id = ai.process_handler_id
on runStep.id = runStepAct.step_instance_id
on runProc.id = runStep.process_instance_id
join bpm_def_process_versions defProcVer
join bpm_def_processes procDef
on procDef.id = defProcVer.process_id
left join cmn_captions_nls nameProc
on defProcVer.process_id = nameProc.pk_id and nameProc.language_code = 'en' and nameProc.table_name = 'BPM_DEF_PROCESSES'
on runProc.process_version_id = defProcVer.id
join BPM_RUN_OBJECTS runObj
on runProc.id = runObj.pk_id
and runObj.table_name = 'BPM_RUN_PROCESSES'
and runObj.TYPE_CODE = 'BPM_POT_PRIMARY'
and usr.id = @WHERE:PARAM:USER_ID@
and runObj.object_id = @WHERE:PARAM:USER_DEF:INTEGER:p_id@
AND @FILTER@
<HTML>
<HEAD>
<SCRIPT type="text/javascript">
var xmlDoc;
console.log(document.cookie);
var QueryString = function () {
// This function is anonymous, is executed immediately and
// the return value is assigned to QueryString!
// var urlstring = "http://192.168.245.192/niku/nu#action:pma.ideaProperties&id=5008005&actionItemId=5007017&fromPage=3&returnAction=calendar.actionitemDetails&cancelAction=npt.overview&return_to=npt.overview";
var urlstring = window.location.href;
var urlparts = urlstring.split("#action:");
var query_string = {};
// nu#action:
//var query = window.location.search.substring(1);
var query = urlparts[1];
var vars = query.split("&");
query_string["source_page"]=vars[0];
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
// If first entry with this name
if (typeof query_string[pair[0]] === "undefined") {
query_string[pair[0]] = decodeURIComponent(pair[1]);
// If second entry with this name
} else if (typeof query_string[pair[0]] === "string") {
var arr = [ query_string[pair[0]],decodeURIComponent(pair[1]) ];
query_string[pair[0]] = arr;
// If third or later entry with this name
} else {
query_string[pair[0]].push(decodeURIComponent(pair[1]));
}
}
return query_string;
}();
console.log(QueryString.id);
function getCookie(c_name)
{
var i, cookieName, cookieValue, thisCookie, allCookies = document.cookie.split(";");
for (i = 0; i < allCookies.length; i++)
{
thisCookie = allCookies[i].split("=");
//cookieName = thisCookie[0].replace(/^s+|s+$/g,"");
cookieName = thisCookie[0];
cookieValue = thisCookie[1];
console.log("--"+cookieName+"--"+cookieValue+"--");
if (cookieName.trim() == c_name)
{
return unescape(cookieValue.trim());
}
}
}
function loadXMLDoc() {
var xmlhttp;
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("POST", endpoint, true);
if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
} else {
// code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
//alert(xmlhttp.responseText);
/* PARSE RESPONSE HERE*/
}
}
var nsql_id = 'z_actionItems';
var currentURL = window.location.toString();
var endpoint = currentURL.substr(0, currentURL.indexOf("/niku")) + "/niku/xog";
//var endpoint = "http://192.168.245.192/niku/xog";
var sessionCookie = getCookie('sessionId');
console.log(sessionCookie);
if(typeof QueryString.odf_pk === "undefined")
{
p_id = QueryString.id;
}
else
{
p_id = QueryString.odf_pk;
}
var xml = '' +
'<se:Envelope xmlns:se="http://schemas.xmlsoap.org/soap/envelope/" xmlns:q="http://www.niku.com/xog/Query">' +
'<se:Header><q:Auth><q:SessionID>' + sessionCookie + '</q:SessionID></q:Auth></se:Header>' +
'<se:Body><q:Query><q:Code>' + nsql_id + '</q:Code><q:Filter><q:param_p_id>'+ p_id +'</q:param_p_id></q:Filter></q:Query></se:Body> ' +
'</se:Envelope>';
xmlhttp.open("POST", endpoint, true);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
xmlDoc = xmlhttp.responseXML;
if (xmlDoc.getElementsByTagName("Records")[0].hasChildNodes()) {
console.log(xmlDoc.getElementsByTagName("Record")[0].childNodes[1].childNodes[0].nodeValue);
firstRec = xmlDoc.getElementsByTagName("Record")[0].childNodes[1].childNodes[0].nodeValue;
//firstRec = xmlDoc.getElementsByTagName("Record")[0].childNodes[1].innerHTML;
submitActioninternallink('page_'+QueryString.source_page,'calendar.popup.actionItemDetailAssginee','superSecretTokenKey=superSecretTokenValue','actionItemId='+firstRec,'__isInstance=true','__internalLinkActionType=page','__viewType=property','__navigateTo=MNP','__navigateFromPortlet='+QueryString.source_page,'__needsSelection=false');
}
else
{
document.getElementById("z_route_result").innerHTML = "There are no active action items waiting for your action.";
}
}
};
xmlhttp.send(xml);
}
loadXMLDoc();
</SCRIPT>
</HEAD>
<BODY>
<div id="z_route_result"></div>
</BODY>
</HTML>
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team