(OK) 运行cBPM—CentOS7
[root@localhost cBPM]# systemctl start nginx.service
[root@localhost cBPM]# systemctl stop nginx.service
[root@localhost cBPM]# systemctl restart nginx.service
[root@localhost cBPM]# systemctl start mariadb.service
[root@localhost html]# iptables -F
HeatingRepair.xml : copy this in process template folder
Criteria.DataTypes.xml : copy this in datatypes folder
export WF_HOME=/etc/nginx/html; export CRITERIA_HOME=/etc/nginx/html
[root@localhost html]# pwd
/etc/nginx/html
[root@localhost html]# ls /etc/nginx/html/database/processTemplate/
HeatingRepair.xml TestNotePad.xml
[root@localhost html]# systemctl stop httpd.service
[root@localhost html]# spawn-fcgi -p 8000 -n executer
++++++++++++++++++++++++++++++++++++++++
问题:Criteria session Initialization [KO].Error[Unknow Error]. Exit.
解决:cp /opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor/database/ /etc/nginx/html -r
问题:black bar in browser
解决:(注意 大小写)
cd /etc/nginx/html
mv Scripts/JavaScript/Vendor/AngularFormBuilder Scripts/JavaScript/Vendor/AngularFormbuilder
问题:the right area is blank in home
解决:
+++++++++++++++++++++++++++++++++++++
/opt/cBPM/criteria-lin/src/Criteria/Criteria.WorkflowEngine/DataBase/FileSystemDataBase.cpp
CM_TRACE_CODEPATH("TemplatesFolder [" << fsConnection.getProcessTemplatesFolder().c_str() << "]") //ztg add
//bOS::IO::FileSystem::ls(fsConnection.getProcessTemplatesFolder().c_str(), files,".xml");
bOS::IO::FileSystem::ls("/etc/nginx/html/database/processTemplate/", files,".xml");
+++++++++++++++++++++++++++++++++++++
/opt/cBPM/criteria-lin/src/Criteria/Criteria.Libraries.bOS/IO/bOSFileSystem.cpp
void FileSystem::ls(const String& sDir, FilesList& files, const char* acExtension)
+++++++++++++++++++++++++++++++++++++
MariaDB [criteria]> delete from SF_WorkflowProcesses;
MariaDB [criteria]> delete from SF_Attributes;
MariaDB [criteria]> delete from SF_Activities;
MariaDB [criteria]> select * from SF_WorkflowProcesses;
+++++++++++++++++++++++++++++++++++++
chown nginx.nginx -R /etc/nginx/html/database/
chmod 755 -R /etc/nginx/html/database/
[root@localhost Tools.Executor]# gedit database/Criteria.xml
[root@localhost Tools.Executor]# spawn-fcgi -p 8000 -n executer
netstat -nautp|grep 80
cp /opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor/executer /opt/cBPM/criteria-lin/lib
http://localhost:9090/criteria/processes/templates/create?process=HeatingRepair
+++++++++++++++++++++++++++++++++++++
TemplatesFolder
+++++++++++++++++++++++++++++++++++++
/opt/cBPM/criteria-lin/src/Criteria/Criteria.WorkflowEngine/DataBase/FileSystemDataBase.cpp
CM_TRACE_CODEPATH("TemplatesFolder [" << fsConnection.getProcessTemplatesFolder().c_str() << "]") //ztg add
//bOS::IO::FileSystem::ls(fsConnection.getProcessTemplatesFolder().c_str(), files,".xml");
bOS::IO::FileSystem::ls("/etc/nginx/html/database/processTemplate/", files,".xml");
+++++++++++++++++++++++++++++++++++++
/opt/cBPM/criteria-lin/src/Criteria/Criteria.Libraries.bOS/IO/bOSFileSystem.cpp
void FileSystem::ls(const String& sDir, FilesList& files, const char* acExtension)
+++++++++++++++++++++++++++++++++++++
/opt/cBPM/criteria-lin/src/Criteria/Criteria.WorkflowEngine/DataBase/DataBaseTemplate.cpp
void DataBaseTemplate::getProcesses(WorkflowProcesses::Processes& vProcesses)
{
sSQL.append(" ORDER BY PROCESS_ID DESC"); //ztg add
}
+++++++++++++++++++++++++++++++++++++
[root@localhost criteria-lin]# grep getProcessTemplate -R
[root@localhost Tools.Executor]# ./executer.old HeatingRepair
[root@localhost Tools.Executor]# ./executer.old TestNotePad
chown nginx.nginx -R /opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor/database/
chmod 755 -R /opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor/database/
export WF_HOME=/opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor; export CRITERIA_HOME=/opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor
cp /opt/cBPM/criteria-lin/src/Criteria/Criteria.Tools/Criteria.Tools.Executor/src/main.cpp.bac /opt/cBPM/criteria-lin/src/Criteria/Criteria.Tools/Criteria.Tools.Executor/src/main.cpp
cp /opt/cBPM/criteria-lin/src/Criteria/Criteria.Tools/Criteria.Tools.Executor/src/main.cpp.rest /opt/cBPM/criteria-lin/src/Criteria/Criteria.Tools/Criteria.Tools.Executor/src/main.cpp
[root@localhost Tools.Executor]# ls database/processTemplate/HeatingRepair.xml
cp /opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor/database/ /etc/nginx/html -r
export WF_HOME=/etc/nginx/html; export CRITERIA_HOME=/etc/nginx/html
netstat -nautp|grep 80
[root@localhost Tools.Executor]# setsebool -P named_tcp_bind_http_port 1
g++ -o main main.cpp -lfcgi -lfcgi++
spawn-fcgi -p 8000 -n main
+++++++++++++++++++++++++++++++++++++
[root@localhost Tools.Executor]# export WF_HOME=/opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor
[root@localhost Tools.Executor]# export CRITERIA_HOME=/opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor
export WF_HOME=/opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor; export CRITERIA_HOME=/opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor
[root@localhost Tools.Executor]# cp /opt/cBPM/criteria-lin/bin/Criteria/Debug/bOS/libLibraries.so /usr/lib64/
[root@localhost Tools.Executor]# cp /opt/cBPM/criteria-lin/bin/Criteria/Debug/WorkflowEngine/libWorkflowEngineD.so /usr/lib64/
[root@localhost Tools.Executor]# ./executer TestNotePad
[root@localhost Tools.Executor]# ./executer StartEnd
+++++++++++++++++++++++++++++++++++++
i alter the following file:
/opt/cBPM/criteria-lin/src/Criteria/Criteria.Libraries.bOS/IO/bOSFileSystem.cpp
void FileSystem::ls(const String& sDir, FilesList& files, const char* acExtension)
+++++++++++++++++++++++++++++++++++++问题:the right area is blank in home,解决:如下
rest.cpp: getWorkflowList(response)
WAPIWorkflow.cpp: getWorkflowList(Response* response)
//vFiles = DataBaseHelper::instance()->getWorkflowList(); //ztg del
vFiles = FileSystemDataBase::instance()->getWorkflowList(); //ztg add
FileSystemDataBase.cpp: getWorkflowList()
CM_TRACE_CODEPATH("TemplatesFolder [" << fsConnection.getProcessTemplatesFolder().c_str() << "]")
bOS::IO::FileSystem::ls(fsConnection.getProcessTemplatesFolder().c_str(), files,".xml");
/******** note: fsConnection.getProcessTemplatesFolder().c_str() is NULL ********/
FileSystemConnection.h: String getProcessTemplatesFolder() { return this->getProcessTemplatesValue();}
Connection.h: String getProcessTemplatesValue();
getObjectValue(String sManaged)
String Connection::getObjectValue(String sManaged)
{
DataBaseObject object;
object.setType ( sManaged);
DataBaseObject* objectRet = (DataBaseObject*)objectManager.get ( (CollectionEntry*) &object);
if ( objectRet == NULL )
return "";
return objectRet->getValue();
}
/************** related to database, are my modifies correct ? **************/
FileSystemDataBase.h & FileSystemDataBase.cpp ( refer to DataBaseHelper.h & DataBaseHelper.cpp )
add:
FileSystemDataBase* FileSystemDataBase::_instance = NULL;
FileSystemDataBase* FileSystemDataBase::instance()
void FileSystemDataBase::deinstance()
+++++++++++++++++++++++++++++++++++++问题:the right area is blank in home,解决:如上
inhabitant acceptor manager repair
13120328961
2016-01-24
No 10, Xitucheng Road, Haidian District, Beijing
A leak in the radiator
阅读(70) | 评论(0) | 转发(0) |
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
[root@localhost cBPM]# systemctl stop nginx.service
[root@localhost cBPM]# systemctl restart nginx.service
[root@localhost cBPM]# systemctl start mariadb.service
[root@localhost html]# iptables -F
HeatingRepair.xml : copy this in process template folder
Criteria.DataTypes.xml : copy this in datatypes folder
export WF_HOME=/etc/nginx/html; export CRITERIA_HOME=/etc/nginx/html
[root@localhost html]# pwd
/etc/nginx/html
[root@localhost html]# ls /etc/nginx/html/database/processTemplate/
HeatingRepair.xml TestNotePad.xml
[root@localhost html]# systemctl stop httpd.service
[root@localhost html]# spawn-fcgi -p 8000 -n executer
++++++++++++++++++++++++++++++++++++++++
问题:Criteria session Initialization [KO].Error[Unknow Error]. Exit.
解决:cp /opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor/database/ /etc/nginx/html -r
问题:black bar in browser
解决:(注意 大小写)
cd /etc/nginx/html
mv Scripts/JavaScript/Vendor/AngularFormBuilder Scripts/JavaScript/Vendor/AngularFormbuilder
问题:the right area is blank in home
解决:
+++++++++++++++++++++++++++++++++++++
/opt/cBPM/criteria-lin/src/Criteria/Criteria.WorkflowEngine/DataBase/FileSystemDataBase.cpp
CM_TRACE_CODEPATH("TemplatesFolder [" << fsConnection.getProcessTemplatesFolder().c_str() << "]") //ztg add
//bOS::IO::FileSystem::ls(fsConnection.getProcessTemplatesFolder().c_str(), files,".xml");
bOS::IO::FileSystem::ls("/etc/nginx/html/database/processTemplate/", files,".xml");
+++++++++++++++++++++++++++++++++++++
/opt/cBPM/criteria-lin/src/Criteria/Criteria.Libraries.bOS/IO/bOSFileSystem.cpp
void FileSystem::ls(const String& sDir, FilesList& files, const char* acExtension)
+++++++++++++++++++++++++++++++++++++
MariaDB [criteria]> delete from SF_WorkflowProcesses;
MariaDB [criteria]> delete from SF_Attributes;
MariaDB [criteria]> delete from SF_Activities;
MariaDB [criteria]> select * from SF_WorkflowProcesses;
+++++++++++++++++++++++++++++++++++++
chown nginx.nginx -R /etc/nginx/html/database/
chmod 755 -R /etc/nginx/html/database/
[root@localhost Tools.Executor]# gedit database/Criteria.xml
[root@localhost Tools.Executor]# spawn-fcgi -p 8000 -n executer
netstat -nautp|grep 80
cp /opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor/executer /opt/cBPM/criteria-lin/lib
http://localhost:9090/criteria/processes/templates/create?process=HeatingRepair
+++++++++++++++++++++++++++++++++++++
TemplatesFolder
+++++++++++++++++++++++++++++++++++++
/opt/cBPM/criteria-lin/src/Criteria/Criteria.WorkflowEngine/DataBase/FileSystemDataBase.cpp
CM_TRACE_CODEPATH("TemplatesFolder [" << fsConnection.getProcessTemplatesFolder().c_str() << "]") //ztg add
//bOS::IO::FileSystem::ls(fsConnection.getProcessTemplatesFolder().c_str(), files,".xml");
bOS::IO::FileSystem::ls("/etc/nginx/html/database/processTemplate/", files,".xml");
+++++++++++++++++++++++++++++++++++++
/opt/cBPM/criteria-lin/src/Criteria/Criteria.Libraries.bOS/IO/bOSFileSystem.cpp
void FileSystem::ls(const String& sDir, FilesList& files, const char* acExtension)
+++++++++++++++++++++++++++++++++++++
/opt/cBPM/criteria-lin/src/Criteria/Criteria.WorkflowEngine/DataBase/DataBaseTemplate.cpp
void DataBaseTemplate::getProcesses(WorkflowProcesses::Processes& vProcesses)
{
sSQL.append(" ORDER BY PROCESS_ID DESC"); //ztg add
}
+++++++++++++++++++++++++++++++++++++
[root@localhost criteria-lin]# grep getProcessTemplate -R
[root@localhost Tools.Executor]# ./executer.old HeatingRepair
[root@localhost Tools.Executor]# ./executer.old TestNotePad
chown nginx.nginx -R /opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor/database/
chmod 755 -R /opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor/database/
export WF_HOME=/opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor; export CRITERIA_HOME=/opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor
cp /opt/cBPM/criteria-lin/src/Criteria/Criteria.Tools/Criteria.Tools.Executor/src/main.cpp.bac /opt/cBPM/criteria-lin/src/Criteria/Criteria.Tools/Criteria.Tools.Executor/src/main.cpp
cp /opt/cBPM/criteria-lin/src/Criteria/Criteria.Tools/Criteria.Tools.Executor/src/main.cpp.rest /opt/cBPM/criteria-lin/src/Criteria/Criteria.Tools/Criteria.Tools.Executor/src/main.cpp
[root@localhost Tools.Executor]# ls database/processTemplate/HeatingRepair.xml
cp /opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor/database/ /etc/nginx/html -r
export WF_HOME=/etc/nginx/html; export CRITERIA_HOME=/etc/nginx/html
netstat -nautp|grep 80
[root@localhost Tools.Executor]# setsebool -P named_tcp_bind_http_port 1
g++ -o main main.cpp -lfcgi -lfcgi++
spawn-fcgi -p 8000 -n main
+++++++++++++++++++++++++++++++++++++
[root@localhost Tools.Executor]# export WF_HOME=/opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor
[root@localhost Tools.Executor]# export CRITERIA_HOME=/opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor
export WF_HOME=/opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor; export CRITERIA_HOME=/opt/cBPM/criteria-lin/bin/Criteria/Debug/Tools.Executor
[root@localhost Tools.Executor]# cp /opt/cBPM/criteria-lin/bin/Criteria/Debug/bOS/libLibraries.so /usr/lib64/
[root@localhost Tools.Executor]# cp /opt/cBPM/criteria-lin/bin/Criteria/Debug/WorkflowEngine/libWorkflowEngineD.so /usr/lib64/
[root@localhost Tools.Executor]# ./executer TestNotePad
[root@localhost Tools.Executor]# ./executer StartEnd
+++++++++++++++++++++++++++++++++++++
i alter the following file:
/opt/cBPM/criteria-lin/src/Criteria/Criteria.Libraries.bOS/IO/bOSFileSystem.cpp
void FileSystem::ls(const String& sDir, FilesList& files, const char* acExtension)
+++++++++++++++++++++++++++++++++++++问题:the right area is blank in home,解决:如下
rest.cpp: getWorkflowList(response)
WAPIWorkflow.cpp: getWorkflowList(Response* response)
//vFiles = DataBaseHelper::instance()->getWorkflowList(); //ztg del
vFiles = FileSystemDataBase::instance()->getWorkflowList(); //ztg add
FileSystemDataBase.cpp: getWorkflowList()
CM_TRACE_CODEPATH("TemplatesFolder [" << fsConnection.getProcessTemplatesFolder().c_str() << "]")
bOS::IO::FileSystem::ls(fsConnection.getProcessTemplatesFolder().c_str(), files,".xml");
/******** note: fsConnection.getProcessTemplatesFolder().c_str() is NULL ********/
FileSystemConnection.h: String getProcessTemplatesFolder() { return this->getProcessTemplatesValue();}
Connection.h: String getProcessTemplatesValue();
getObjectValue(String sManaged)
String Connection::getObjectValue(String sManaged)
{
DataBaseObject object;
object.setType ( sManaged);
DataBaseObject* objectRet = (DataBaseObject*)objectManager.get ( (CollectionEntry*) &object);
if ( objectRet == NULL )
return "";
return objectRet->getValue();
}
/************** related to database, are my modifies correct ? **************/
FileSystemDataBase.h & FileSystemDataBase.cpp ( refer to DataBaseHelper.h & DataBaseHelper.cpp )
add:
FileSystemDataBase* FileSystemDataBase::_instance = NULL;
FileSystemDataBase* FileSystemDataBase::instance()
void FileSystemDataBase::deinstance()
+++++++++++++++++++++++++++++++++++++问题:the right area is blank in home,解决:如上
inhabitant acceptor manager repair
13120328961
2016-01-24
No 10, Xitucheng Road, Haidian District, Beijing
A leak in the radiator
相关热门文章
给主人留下些什么吧!~~
评论热议