发布消息通告,点击确定,变灰色后就不动了
之前还能完成审批流,但走完通知流程后,无法在消息通告界面显示出来(电脑端、手机端都无法看到),通知公告设置里加了使用流程,流程里调用参数和脚本都是按照手册里做的 2023-09-06 10:12:12.612 INFO com.x.jpush.assemble.control.jaxrs.message.ActionSendMessage - 极光推送 body: {"platform":"all","audience":{"registration_id":["13165ffa4f16009b34e"]},"notification":{"ai_opportunity":false,"android":{"alert":"您有新的待办:9.6测试, (拟稿,信息发布)","priority":2,"badge_add_num":1,"badge_class":"net.zoneland.x.bpm.mobile.v1.zoneXBPM.app.o2.launch.LaunchActivity"},"ios":{"alert":"您有新的待办:9.6测试, (拟稿,信息发布)","badge":"1","sound":"default"}},"options":{"sendno":598215597,"apns_production":true}}
INFO2023-09-06 10:12:15.756
2023-09-06 10:12:15.756 INFO com.x.jpush.assemble.control.jaxrs.message.ActionSendMessage - 极光推送 发送结果:{"msg_id":18100962476016148,"sendno":598215597,"statusCode":0}.
INFO2023-09-06 10:12:16.859
2023-09-06 10:12:16.859 INFO com.x.jpush.assemble.control.jaxrs.message.ActionSendMessage - action 'ActionSendMessage' execute completed!
INFO2023-09-06 10:13:02.010
2023-09-06 10:13:02.010 INFO com.x.query.service.processing.schedule.HighFreqWorkCompleted - high freq index workCompleted start at:2023-09-06 10:13:02, elapsed:0 minutes, total count:0, write:0, delete:0.
INFO2023-09-06 10:13:02.023
2023-09-06 10:13:02.023 INFO com.x.query.service.processing.schedule.HighFreqDocument - high freq index document start at:2023-09-06 10:13:02, elapsed:0 minutes, total count:0, write:0, delete:0.
INFO2023-09-06 10:13:11.649
2023-09-06 10:13:11.649 INFO com.x.program.center.schedule.FireSchedule - fire schedule className: com.x.calendar.assemble.control.schedule.AlarmTrigger, cron: 0/30 * * * * ?, node: 127.0.0.1, application: com.x.base.core.project.x_calendar_assemble_control.
INFO2023-09-06 10:13:13.127
2023-09-06 10:13:13.127 INFO com.x.program.center.schedule.FireSchedule - fire schedule className: com.x.processplatform.assemble.surface.schedule.CleanKeyLock, cron: 2 0/2 * * * ?, node: 127.0.0.1, application: com.x.base.core.project.x_processplatform_assemble_surface.
INFO2023-09-06 10:13:14.122
2023-09-06 10:13:14.122 INFO com.x.calendar.assemble.control.schedule.AlarmTrigger - The trigger for calendar alarm execute completed.Wed Sep 06 10:13:14 GMT+08:00 2023
INFO2023-09-06 10:14:02.014
2023-09-06 10:14:02.014 INFO com.x.query.service.processing.schedule.HighFreqWork - high freq index work start at:2023-09-06 10:14:02, elapsed:0 minutes, total count:0, write:0, delete:0.
inutes, total count:0, write:0, delete:0. 您发的这段日志不是流转的报错日志,您F12看看网络请求,是哪个请求报错了,日志发完整日志上来看看,发附件:handshake 论坛管理员 发表于 2023-9-6 15:47
您发的这段日志不是流转的报错日志,您F12看看网络请求,是哪个请求报错了,日志发完整日志上来看看,发附 ...
只有图一这一个报错,我没找到哪儿有请求报错,点报错就显示下面红色,日志的我取的是图二的“out”文件,我看这是实时更新的,其他的都不像
这个要看您的脚本,看看是不是自定义脚本报错了 本帖最后由 奔跑的蜗牛 于 2023-9-7 10:18 编辑
论坛管理员 发表于 2023-9-7 09:36
这个要看您的脚本,看看是不是自定义脚本报错了
我没改过,就是原来的
this.define("getPublishData", function(){
var isArray =function(obj){
return Object.prototype.toString.call(obj) === '' || Object.prototype.toString.call(obj) === '';
};
var clone = function (obj) {
if (null === obj || "object" != typeof obj) return obj;
if(isArray(obj)){ //数组
//print( "array" );
var copy = [];
for (var i = 0, len = obj.length; i < len; ++i) {
copy = clone(obj);
}
return copy;
}else{
var copy = {};
for (var attr in obj) {
copy = clone(obj);
}
return copy;
}
};
var removeHTMLTag = function(str) {
str = str.replace(/<\/?[^>]*>/g,''); //去除HTML tag
str = str.replace(/[ | ]*\n/g,'\n'); //去除行尾空白
//str = str.replace(/\n[\s| | ]*\r/g,'\n'); //去除多余空行
str=str.replace(/ /ig,'');//去掉
str=str.replace(/\s/g,''); //将空格去掉
return str;
};
var document = clone( this.data.cmsDocument );
var data = clone( this.data );
var work = this.workContext.getWork();
data.formProcess = true;
delete document.attachmentList;
document.subject = data.subject;
document.title = data.subject;
document.wf_workId = work.id;
document.wf_jobId = work.job;
document.pictureList = [];
if( data.imageclipper ){
document.pictureList.push( data.imageclipper );
}
document.summary = "";
if( data.htmleditor ){
var text = removeHTMLTag( data.htmleditor );
document.summary = text.substr(0,85);
}
var attachmentList = this.workContext.getAttachmentList();
var attachmentIds = [];
for( var i=0, len=attachmentList.length; i<len; ++i ){
attachmentIds.push( attachmentList.id );
}
document.wf_attachmentIds = attachmentIds;
var cnArray = ["组织","群组","人员","人员","角色"];
var keyArray = ["U","G","I","P","R"];
var result = [];
print( "data.publishFor.length="+data.publishFor.length );
if( typeOf(data.publishFor) == "array" && data.publishFor.length > 0){
for( var i=0; i<data.publishFor.length; i++ ){
var publishFor = data.publishFor;
var dn = typeOf( publishFor ) === "string" ? publishFor : publishFor.distinguishedName;
var index = keyArray.indexOf(dn.substr(dn.length-1, 1));
if( index > -1 ){
result.push({
permission : "阅读",
permissionObjectType : cnArray[ index ],
permissionObjectName : dn
});
}
}
}
print( JSON.stringify(result) );
var owners = [];
if( result.length > 0 ){
var taskCompletedList = this.workContext.getTaskCompletedList();
for(var i=0, len=taskCompletedList.length; i<len; ++i){
var taskCompleted = taskCompletedList;
if(taskCompleted.person){
owners.push( taskCompleted.person );
}
}
if( owners.length > 0 ){
for(var i=0, len=owners.length; i<len; ++i){
result.push({
permission : "阅读",
permissionObjectType : "人员",
permissionObjectName : owners
});
}
}
}
//document.permissionList = result;
document.readerList = result;
data.processOwnerList = owners;
document.docData = data;
return document;
}.bind(this));
加一些print输出,跟踪一下 论坛管理员 发表于 2023-9-7 17:15
加一些print输出,跟踪一下
如何操作,不明白什么意思:L
页:
[1]
2