Commit f099e883 by ansible

add inital data version 305

1 parent 9e08dce3
#!/bin/bash
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7018 <<EOF
use DMAMANAGER
db.auth("mongoapp", "mOng0@pp")
db.createCollection("user")
db.user.insertOne(
{
"_class" : "com.jjpa.db.mongodb.document.dma.manager.UserDocument",
"username" : "admin",
"password" : "ZG1hQGRtaW5tYW5hZ2Vy",
"createDate" : new Date(),
"createBy" : "system",
"lastUpdateDate" : new Date(),
"lastUpdateBy" : "system",
"role" : "admin"
}
)
db.user.insertOne(
{
"_class" : "com.jjpa.db.mongodb.document.dma.manager.UserDocument",
"username" : "beebuddySystemAdmin",
"password" : "U3lzdGVtQGRtaW5NYW5hZ2Vy",
"createDate" : new Date(),
"createBy" : "system",
"lastUpdateDate" : new Date(),
"lastUpdateBy" : "system",
"role" : "system"
}
)
db.createCollection("entity_config")
db.entity_config.insertOne(
{
"_class" : "com.jjpa.db.mongodb.document.dma.manager.EntityDocument",
"entityName" : "default",
"remark" : "Default Entity",
"storyName" : "",
"role" : "",
"theme" : "",
"status" : "Active",
"publishStatus" : "W",
"createDate" : new Date(),
"lastUpdateDate" : new Date()
}
)
db.createCollection("dma_entity_config")
db.dma_entity_config.insertOne(
{
"entityName" : "default",
"home" : "WelcomeDMA",
"firstPage" : "WelcomeDMA",
"screenList" : [
{
"source" : "WelcomeDMA",
"dynamicApi" : null,
"dynamicDataBinding" : [],
"templateType" : "static",
"uiJson" : "{\"$jason\":{\"head\":{\"title\":\"FirstPageTemplate\",\"actions\":{\"$load\":{\"type\":\"$set\",\"options\":{\"background\":\"#ffffff\"},\"success\":{\"type\":\"$render\"},\"error\":{}},\"$on.back\":{\"options\":{\"allowback\":\"false\"}}},\"templates\":{\"body\":{\"header\":{\"style\":{\"background\":\"{{$get.background}}\"}},\"style\":{\"background\":\"{{$get.background}}\",\"border\":\"none\"},\"sections\":[{\"items\":[{\"type\":\"vertical\",\"style\":{\"align\":\"center\",\"width\":\"100%\",\"height\":\"85%\"},\"components\":[{\"type\":\"label\",\"text\":\"Welcome to DMA\",\"style\":{\"size\":\"30\",\"align\":\"center\",\"color\":\"#555555\"},\"visible\":\"true\"}]}]}]}}}}}",
"actionList" : [],
"globalInputList" : [],
"globalOutputList" : []
}
],
"createDate" : new Date(),
"lastUpdateDate" : new Date(),
"createBy" : "system",
"lastUpdateBy" : "system"
}
)
db.createCollection("dma_action_chain_template")
db.dma_action_chain_template.insert(
[
{
"actionType" : "detailList_confirm_api_change",
"chainTemplate" : {
"type" : "$set",
"dmaType" : "prepare_list",
"options" : {
"selected_details_item" : "{{$jason.my}}"
},
"success" : {
"type" : "$util.alert",
"dmaType" : "confirm_dialog",
"options" : {
"title" : "Hello",
"description" : "This is a message",
"positiveText" : "Yes",
"negetiveText" : "No"
},
"success" : {
"type" : "$loading",
"dmaType" : "open_loading",
"options" : {
"lock" : "true"
},
"success" : {
"type" : "$set",
"dmaType" : "set_global_to_api",
"options" : {},
"success" : {
"type" : "$network.request",
"dmaType" : "network_request",
"options" : {
"url" : "http://www.dma.beebuddy.net/myfile.json",
"method" : "post",
"header" : {
"content_type" : "json"
},
"data" : {}
},
"success" : {
"type" : "$set",
"dmaType" : "response_to_local",
"options" : {
"result" : "{{$jason}}"
},
"success" : {
"type" : "$loading",
"dmaType" : "hide_loading",
"options" : {
"lock" : "false"
},
"success" : {
"type" : "$util.condition",
"dmaType" : "check_condition",
"options" : {
"expression" : "true"
},
"success" : {
"type" : "$global.set",
"dmaType" : "set_detail_list_global",
"options" : {
"output1" : "{{$get.result.resultData}}"
},
"success" : {
"type" : "$href",
"dmaType" : "change_page",
"options" : {
"url" : "www.mylinkurl.com/myfile.json"
},
"success" : {},
"error" : {}
},
"error" : {}
},
"error" : {
"type" : "$util.banner",
"dmaType" : "condition_Banner",
"options" : {
"title" : "Hello",
"description" : "{{$get.result.resultMessage}}",
"type" : "error"
},
"success" : {},
"error" : {}
}
}
}
},
"error" : {
"type" : "$loading",
"dmaType" : "hide_loading",
"options" : {
"lock" : "false"
},
"success" : {
"type" : "$util.banner",
"dmaType" : "network_banner",
"options" : {
"title" : "Hello",
"description" : "Can not connect to server.",
"type" : "error"
},
"success" : {},
"error" : {
"type" : "$util.alert",
"dmaType" : "network_banner",
"options" : {
"title" : "Hello",
"description" : "Do you want to exit?",
"positiveText" : "Yes",
"negetiveText" : "No",
"form" : []
},
"success" : {},
"error" : {}
}
}
}
},
"error" : {}
}
},
"error" : {}
}
}
},
{
"actionType" : "detailList_confirm_api_self",
"chainTemplate" : {
"type" : "$set",
"dmaType" : "prepare_list",
"options" : {
"selected_details_item" : "{{$jason.my}}"
},
"success" : {
"type" : "$util.alert",
"dmaType" : "confirm_dialog",
"options" : {
"title" : "Hello",
"description" : "This is a message",
"positiveText" : "Yes",
"negetiveText" : "No"
},
"success" : {
"type" : "$loading",
"dmaType" : "open_loading",
"options" : {
"lock" : "true"
},
"success" : {
"type" : "$set",
"dmaType" : "set_global_to_api",
"options" : {},
"success" : {
"type" : "$network.request",
"dmaType" : "network_request",
"options" : {
"url" : "http://www.dma.beebuddy.net/myfile.json",
"method" : "post",
"header" : {
"content_type" : "json"
},
"data" : {}
},
"success" : {
"type" : "$set",
"dmaType" : "response_to_local",
"options" : {
"result" : "{{$jason}}"
},
"success" : {
"type" : "$loading",
"dmaType" : "hide_loading",
"options" : {
"lock" : "false"
},
"success" : {
"type" : "$util.condition",
"dmaType" : "check_condition",
"options" : {
"expression" : "true"
},
"success" : {
"type" : "$global.set",
"dmaType" : "set_detail_list_global",
"options" : {
"output1" : "{{$get.result.resultData}}"
},
"success" : {
},
"error" : {}
},
"error" : {
"type" : "$util.banner",
"dmaType" : "condition_Banner",
"options" : {
"title" : "Hello",
"description" : "{{$get.result.resultMessage}}",
"type" : "error"
},
"success" : {},
"error" : {}
}
}
}
},
"error" : {
"type" : "$loading",
"dmaType" : "hide_loading",
"options" : {
"lock" : "false"
},
"success" : {
"type" : "$util.banner",
"dmaType" : "network_banner",
"options" : {
"title" : "Hello",
"description" : "Can not connect to server.",
"type" : "error"
},
"success" : {},
"error" : {
"type" : "$util.alert",
"dmaType" : "network_banner",
"options" : {
"title" : "Hello",
"description" : "Do you want to exit?",
"positiveText" : "Yes",
"negetiveText" : "No",
"form" : []
},
"success" : {},
"error" : {}
}
}
}
},
"error" : {}
}
},
"error" : {}
}
}
},
{
"actionType" : "detailList_confirm_noapi_change",
"chainTemplate" : {
"type" : "$set",
"dmaType" : "prepare_list",
"options" : {
"selected_details_item" : "{{$jason.my}}"
},
"success" : {
"type" : "$util.alert",
"dmaType" : "confirm_dialog",
"options" : {
"title" : "Hello",
"description" : "This is a message",
"positiveText" : "Yes",
"negetiveText" : "No"
},
"success" : {
"type" : "$global.set",
"dmaType" : "set_detail_list_global",
"options" : {
"output1" : "{{$get.result.resultData}}"
},
"success" : {
"type" : "$href",
"dmaType" : "change_page",
"options" : {
"url" : "www.mylinkurl.com/myfile.json"
},
"success" : {},
"error" : {}
},
"error" : {}
},
"error" : {}
}
}
},
{
"actionType" : "detailList_confirm_noapi_self",
"chainTemplate" : {
"type" : "$set",
"dmaType" : "prepare_list",
"options" : {
"selected_details_item" : "{{$jason.my}}"
},
"success" : {
"type" : "$util.alert",
"dmaType" : "confirm_dialog",
"options" : {
"title" : "Hello",
"description" : "This is a message",
"positiveText" : "Yes",
"negetiveText" : "No"
},
"success" : {
"type" : "$global.set",
"dmaType" : "set_detail_list_global",
"options" : {
"output1" : "{{$get.result.resultData}}"
},
"success" : {
},
"error" : {}
},
"error" : {}
}
}
},
{
"actionType" : "detailList_noconfirm_api_change",
"chainTemplate" : {
"type" : "$set",
"dmaType" : "prepare_list",
"options" : {
"selected_details_item" : "{{$jason.my}}"
},
"success" : {
"type" : "$loading",
"dmaType" : "open_loading",
"options" : {
"lock" : "true"
},
"success" : {
"type" : "$set",
"dmaType" : "set_global_to_api",
"options" : {},
"success" : {
"type" : "$network.request",
"dmaType" : "network_request",
"options" : {
"url" : "http://www.dma.beebuddy.net/myfile.json",
"method" : "post",
"header" : {
"content_type" : "json"
},
"data" : {}
},
"success" : {
"type" : "$set",
"dmaType" : "response_to_local",
"options" : {
"result" : "{{$jason}}"
},
"success" : {
"type" : "$loading",
"dmaType" : "hide_loading",
"options" : {
"lock" : "false"
},
"success" : {
"type" : "$util.condition",
"dmaType" : "check_condition",
"options" : {
"expression" : "true"
},
"success" : {
"type" : "$global.set",
"dmaType" : "set_detail_list_global",
"options" : {
"output1" : "{{$get.result.resultData}}"
},
"success" : {
"type" : "$href",
"dmaType" : "change_page",
"options" : {
"url" : "www.mylinkurl.com/myfile.json"
},
"success" : {},
"error" : {}
},
"error" : {}
},
"error" : {
"type" : "$util.banner",
"dmaType" : "condition_Banner",
"options" : {
"title" : "Hello",
"description" : "{{$get.result.resultMessage}}",
"type" : "error"
},
"success" : {},
"error" : {}
}
}
}
},
"error" : {
"type" : "$loading",
"dmaType" : "hide_loading",
"options" : {
"lock" : "false"
},
"success" : {
"type" : "$util.banner",
"dmaType" : "network_banner",
"options" : {
"title" : "Hello",
"description" : "Can not connect to server.",
"type" : "error"
},
"success" : {},
"error" : {
"type" : "$util.alert",
"dmaType" : "network_banner",
"options" : {
"title" : "Hello",
"description" : "Do you want to exit?",
"positiveText" : "Yes",
"negetiveText" : "No",
"form" : []
},
"success" : {},
"error" : {}
}
}
}
},
"error" : {}
}
}
}
},
{
"actionType" : "detailList_noconfirm_api_self",
"chainTemplate" : {
"type" : "$set",
"dmaType" : "prepare_list",
"options" : {
"selected_details_item" : "{{$jason.my}}"
},
"success" : {
"type" : "$loading",
"dmaType" : "open_loading",
"options" : {
"lock" : "true"
},
"success" : {
"type" : "$set",
"dmaType" : "set_global_to_api",
"options" : {},
"success" : {
"type" : "$network.request",
"dmaType" : "network_request",
"options" : {
"url" : "http://www.dma.beebuddy.net/myfile.json",
"method" : "post",
"header" : {
"content_type" : "json"
},
"data" : {}
},
"success" : {
"type" : "$set",
"dmaType" : "response_to_local",
"options" : {
"result" : "{{$jason}}"
},
"success" : {
"type" : "$loading",
"dmaType" : "hide_loading",
"options" : {
"lock" : "false"
},
"success" : {
"type" : "$util.condition",
"dmaType" : "check_condition",
"options" : {
"expression" : "true"
},
"success" : {
"type" : "$global.set",
"dmaType" : "set_detail_list_global",
"options" : {
"output1" : "{{$get.result.resultData}}"
},
"success" : {
},
"error" : {}
},
"error" : {
"type" : "$util.banner",
"dmaType" : "condition_Banner",
"options" : {
"title" : "Hello",
"description" : "{{$get.result.resultMessage}}",
"type" : "error"
},
"success" : {},
"error" : {}
}
}
}
},
"error" : {
"type" : "$loading",
"dmaType" : "hide_loading",
"options" : {
"lock" : "false"
},
"success" : {
"type" : "$util.banner",
"dmaType" : "network_banner",
"options" : {
"title" : "Hello",
"description" : "Can not connect to server.",
"type" : "error"
},
"success" : {},
"error" : {
"type" : "$util.alert",
"dmaType" : "network_banner",
"options" : {
"title" : "Hello",
"description" : "Do you want to exit?",
"positiveText" : "Yes",
"negetiveText" : "No",
"form" : []
},
"success" : {},
"error" : {}
}
}
}
},
"error" : {}
}
}
}
},
{
"actionType" : "detailList_noconfirm_noapi_change",
"chainTemplate" : {
"type" : "$set",
"dmaType" : "prepare_list",
"options" : {
"selected_details_item" : "{{$jason.my}}"
},
"success" : {
"type" : "$global.set",
"dmaType" : "set_detail_list_global",
"options" : {
"output1" : "{{$get.result.resultData}}"
},
"success" : {
"type" : "$href",
"dmaType" : "change_page",
"options" : {
"url" : "www.mylinkurl.com/myfile.json"
},
"success" : {},
"error" : {}
},
"error" : {}
}
}
},
{
"actionType" : "detailList_noconfirm_noapi_self",
"chainTemplate" : {
"type" : "$set",
"dmaType" : "prepare_list",
"options" : {
"selected_details_item" : "{{$jason.my}}"
},
"success" : {
"type" : "$global.set",
"dmaType" : "set_detail_list_global",
"options" : {
"output1" : "{{$get.result.resultData}}"
},
"success" : {
},
"error" : {}
}
}
},
{
"actionType" : "login_confirm_api_change",
"chainTemplate" : {
"type" : "$util.alert",
"dmaType" : "confirm_dialog",
"options" : {
"title" : "Hello",
"description" : "This is a message",
"positiveText" : "Yes",
"negetiveText" : "No"
},
"success" : {
"type" : "$loading",
"dmaType" : "open_loading",
"options" : {
"lock" : "true"
},
"success" : {
"type" : "$set",
"dmaType" : "set_global_to_api",
"options" : {},
"success" : {
"type" : "$network.request",
"dmaType" : "network_request",
"options" : {
"url" : "http://www.dma.beebuddy.net/myfile.json",
"method" : "post",
"header" : {
"content_type" : "json"
},
"data" : {}
},
"success" : {
"type" : "$set",
"dmaType" : "response_to_local",
"options" : {
"result" : "{{$jason}}"
},
"success" : {
"type" : "$loading",
"dmaType" : "hide_loading",
"options" : {
"lock" : "false"
},
"success" : {
"type" : "$util.condition",
"dmaType" : "check_condition",
"options" : {
"expression" : "true"
},
"success" : {
"type" : "$global.set",
"dmaType" : "set_global",
"options" : {
"output1" : "{{$get.result.resultData}}"
},
"success" : {
"type" : "$session.set",
"dmaType" : "set_session",
"options" : {
"domain" : "jasonbase.com",
"header" : {},
"body" : {}
},
"success" : {
"type" : "$href",
"dmaType" : "change_page",
"options" : {
"url" : "www.mylinkurl.com/myfile.json"
},
"success" : {},
"error" : {}
},
"error" : {}
},
"error" : {}
},
"error" : {
"type" : "$util.banner",
"dmaType" : "condition_Banner",
"options" : {
"title" : "Hello",
"description" : "{{$get.result.resultMessage}}",
"type" : "error"
},
"success" : {},
"error" : {}
}
}
}
},
"error" : {
"type" : "$loading",
"dmaType" : "hide_loading",
"options" : {
"lock" : "false"
},
"success" : {
"type" : "$util.banner",
"dmaType" : "network_banner",
"options" : {
"title" : "Hello",
"description" : "Can not connect to server.",
"type" : "error"
},
"success" : {},
"error" : {
"type" : "$util.alert",
"dmaType" : "network_banner",
"options" : {
"title" : "Hello",
"description" : "Do you want to exit?",
"positiveText" : "Yes",
"negetiveText" : "No",
"form" : []
},
"success" : {},
"error" : {}
}
}
}
},
"error" : {}
}
},
"error" : {}
}
},
{
"actionType" : "login_noconfirm_api_change",
"chainTemplate" : {
"type" : "$loading",
"dmaType" : "open_loading",
"options" : {
"lock" : "true"
},
"success" : {
"type" : "$set",
"dmaType" : "set_global_to_api",
"options" : {},
"success" : {
"type" : "$network.request",
"dmaType" : "network_request",
"options" : {
"url" : "http://www.dma.beebuddy.net/myfile.json",
"method" : "post",
"header" : {
"content_type" : "json"
},
"data" : {}
},
"success" : {
"type" : "$set",
"dmaType" : "response_to_local",
"options" : {
"result" : "{{$jason}}"
},
"success" : {
"type" : "$loading",
"dmaType" : "hide_loading",
"options" : {
"lock" : "false"
},
"success" : {
"type" : "$util.condition",
"dmaType" : "check_condition",
"options" : {
"expression" : "true"
},
"success" : {
"type" : "$global.set",
"dmaType" : "set_global",
"options" : {
"output1" : "{{$get.result.resultData}}"
},
"success" : {
"type" : "$session.set",
"dmaType" : "set_session",
"options" : {
"domain" : "jasonbase.com",
"header" : {},
"body" : {}
},
"success" : {
"type" : "$href",
"dmaType" : "change_page",
"options" : {
"url" : "www.mylinkurl.com/myfile.json"
},
"success" : {},
"error" : {}
},
"error" : {}
},
"error" : {}
},
"error" : {
"type" : "$util.banner",
"dmaType" : "condition_Banner",
"options" : {
"title" : "Hello",
"description" : "{{$get.result.resultMessage}}",
"type" : "error"
},
"success" : {},
"error" : {}
}
}
}
},
"error" : {
"type" : "$loading",
"dmaType" : "hide_loading",
"options" : {
"lock" : "false"
},
"success" : {
"type" : "$util.banner",
"dmaType" : "network_banner",
"options" : {
"title" : "Hello",
"description" : "Can not connect to server.",
"type" : "error"
},
"success" : {},
"error" : {
"type" : "$util.alert",
"dmaType" : "network_banner",
"options" : {
"title" : "Hello",
"description" : "Do you want to exit?",
"positiveText" : "Yes",
"negetiveText" : "No",
"form" : []
},
"success" : {},
"error" : {}
}
}
}
},
"error" : {}
}
}
},
{
"actionType" : "normal_confirm_api_change",
"chainTemplate" : {
"type" : "$util.alert",
"dmaType" : "confirm_dialog",
"options" : {
"title" : "Hello",
"description" : "This is a message",
"positiveText" : "Yes",
"negetiveText" : "No"
},
"success" : {
"type" : "$loading",
"dmaType" : "open_loading",
"options" : {
"lock" : "true"
},
"success" : {
"type" : "$set",
"dmaType" : "set_global_to_api",
"options" : {},
"success" : {
"type" : "$network.request",
"dmaType" : "network_request",
"options" : {
"url" : "http://www.dma.beebuddy.net/myfile.json",
"method" : "post",
"header" : {
"content_type" : "json"
},
"data" : {}
},
"success" : {
"type" : "$set",
"dmaType" : "response_to_local",
"options" : {
"result" : "{{$jason}}"
},
"success" : {
"type" : "$loading",
"dmaType" : "hide_loading",
"options" : {
"lock" : "false"
},
"success" : {
"type" : "$util.condition",
"dmaType" : "check_condition",
"options" : {
"expression" : "true"
},
"success" : {
"type" : "$global.set",
"dmaType" : "set_global",
"options" : {
"output1" : "{{$get.result.resultData}}"
},
"success" : {
"type" : "$href",
"dmaType" : "change_page",
"options" : {
"url" : "www.mylinkurl.com/myfile.json"
},
"success" : {},
"error" : {}
},
"error" : {}
},
"error" : {
"type" : "$util.banner",
"dmaType" : "condition_Banner",
"options" : {
"title" : "Hello",
"description" : "{{$get.result.resultMessage}}",
"type" : "error"
},
"success" : {},
"error" : {}
}
}
}
},
"error" : {
"type" : "$loading",
"dmaType" : "hide_loading",
"options" : {
"lock" : "false"
},
"success" : {
"type" : "$util.banner",
"dmaType" : "network_banner",
"options" : {
"title" : "Hello",
"description" : "Can not connect to server.",
"type" : "error"
},
"success" : {},
"error" : {
"type" : "$util.alert",
"dmaType" : "network_banner",
"options" : {
"title" : "Hello",
"description" : "Do you want to exit?",
"positiveText" : "Yes",
"negetiveText" : "No",
"form" : []
},
"success" : {},
"error" : {}
}
}
}
},
"error" : {}
}
},
"error" : {}
}
},
{
"actionType" : "normal_confirm_api_self",
"chainTemplate" : {
"type" : "$util.alert",
"dmaType" : "confirm_dialog",
"options" : {
"title" : "Hello",
"description" : "This is a message",
"positiveText" : "Yes",
"negetiveText" : "No"
},
"success" : {
"type" : "$loading",
"dmaType" : "open_loading",
"options" : {
"lock" : "true"
},
"success" : {
"type" : "$set",
"dmaType" : "set_global_to_api",
"options" : {},
"success" : {
"type" : "$network.request",
"dmaType" : "network_request",
"options" : {
"url" : "http://www.dma.beebuddy.net/myfile.json",
"method" : "post",
"header" : {
"content_type" : "json"
},
"data" : {}
},
"success" : {
"type" : "$set",
"dmaType" : "response_to_local",
"options" : {
"result" : "{{$jason}}"
},
"success" : {
"type" : "$loading",
"dmaType" : "hide_loading",
"options" : {
"lock" : "false"
},
"success" : {
"type" : "$util.condition",
"dmaType" : "check_condition",
"options" : {
"expression" : "true"
},
"success" : {
"type" : "$global.set",
"dmaType" : "set_global",
"options" : {
"output1" : "{{$get.result.resultData}}"
},
"success" : {
},
"error" : {}
},
"error" : {
"type" : "$util.banner",
"dmaType" : "condition_Banner",
"options" : {
"title" : "Hello",
"description" : "{{$get.result.resultMessage}}",
"type" : "error"
},
"success" : {},
"error" : {}
}
}
}
},
"error" : {
"type" : "$loading",
"dmaType" : "hide_loading",
"options" : {
"lock" : "false"
},
"success" : {
"type" : "$util.banner",
"dmaType" : "network_banner",
"options" : {
"title" : "Hello",
"description" : "Can not connect to server.",
"type" : "error"
},
"success" : {},
"error" : {
"type" : "$util.alert",
"dmaType" : "network_banner",
"options" : {
"title" : "Hello",
"description" : "Do you want to exit?",
"positiveText" : "Yes",
"negetiveText" : "No",
"form" : []
},
"success" : {},
"error" : {}
}
}
}
},
"error" : {}
}
},
"error" : {}
}
},
{
"actionType": "normal_confirm_noapi_change",
"chainTemplate": {
"type": "$util.alert",
"dmaType": "confirm_dialog",
"options": {
"title": "Hello",
"description": "This is a message",
"positiveText": "Yes",
"negetiveText": "No"
},
"success": {
"type": "$global.set",
"dmaType": "set_global",
"options": {
"output1": "{{$get.result.resultData}}"
},
"success": {
"type": "$href",
"dmaType": "change_page",
"options": {
"url": "www.mylinkurl.com/myfile.json"
},
"success": {},
"error": {}
},
"error": {}
}
}
},
{
"actionType": "normal_confirm_noapi_self",
"chainTemplate": {
"type": "$util.alert",
"dmaType": "confirm_dialog",
"options": {
"title": "Hello",
"description": "This is a message",
"positiveText": "Yes",
"negetiveText": "No"
},
"success": {
"type": "$global.set",
"dmaType": "set_global",
"options": {
"output1": "{{$get.result.resultData}}"
},
"success": {
},
"error": {}
}
}
},
{
"actionType": "normal_noconfirm_api_change",
"chainTemplate": {
"type": "$loading",
"dmaType": "open_loading",
"options": {
"lock": "true"
},
"success": {
"type": "$set",
"dmaType": "set_global_to_api",
"options": {},
"success": {
"type": "$network.request",
"dmaType": "network_request",
"options": {
"url": "http://www.dma.beebuddy.net/myfile.json",
"method": "post",
"header": {
"content_type": "json"
},
"data": {}
},
"success": {
"type": "$set",
"dmaType": "response_to_local",
"options": {
"result": "{{$jason}}"
},
"success": {
"type": "$loading",
"dmaType": "hide_loading",
"options": {
"lock": "false"
},
"success": {
"type": "$util.condition",
"dmaType": "check_condition",
"options": {
"expression": "true"
},
"success": {
"type": "$global.set",
"dmaType": "set_global",
"options": {
"output1": "{{$get.result.resultData}}"
},
"success": {
"type": "$href",
"dmaType": "change_page",
"options": {
"url": "www.mylinkurl.com/myfile.json"
},
"success": {},
"error": {}
},
"error": {}
},
"error": {
"type": "$util.banner",
"dmaType": "condition_Banner",
"options": {
"title": "Hello",
"description": "{{$get.result.resultMessage}}",
"type": "error"
},
"success": {},
"error": {}
}
}
}
},
"error": {
"type": "$loading",
"dmaType": "hide_loading",
"options": {
"lock": "false"
},
"success": {
"type": "$util.banner",
"dmaType": "network_banner",
"options": {
"title": "Hello",
"description": "Can not connect to server.",
"type": "error"
},
"success": {},
"error": {
"type": "$util.alert",
"dmaType": "network_banner",
"options": {
"title": "Hello",
"description": "Do you want to exit?",
"positiveText": "Yes",
"negetiveText": "No",
"form": []
},
"success": {},
"error": {}
}
}
}
},
"error": {}
}
}
},
{
"actionType": "normal_noconfirm_api_self",
"chainTemplate": {
"type": "$loading",
"dmaType": "open_loading",
"options": {
"lock": "true"
},
"success": {
"type": "$set",
"dmaType": "set_global_to_api",
"options": {},
"success": {
"type": "$network.request",
"dmaType": "network_request",
"options": {
"url": "http://www.dma.beebuddy.net/myfile.json",
"method": "post",
"header": {
"content_type": "json"
},
"data": {}
},
"success": {
"type": "$set",
"dmaType": "response_to_local",
"options": {
"result": "{{$jason}}"
},
"success": {
"type": "$loading",
"dmaType": "hide_loading",
"options": {
"lock": "false"
},
"success": {
"type": "$util.condition",
"dmaType": "check_condition",
"options": {
"expression": "true"
},
"success": {
"type": "$global.set",
"dmaType": "set_global",
"options": {
"output1": "{{$get.result.resultData}}"
},
"success": {
},
"error": {}
},
"error": {
"type": "$util.banner",
"dmaType": "condition_Banner",
"options": {
"title": "Hello",
"description": "{{$get.result.resultMessage}}",
"type": "error"
},
"success": {},
"error": {}
}
}
}
},
"error": {
"type": "$loading",
"dmaType": "hide_loading",
"options": {
"lock": "false"
},
"success": {
"type": "$util.banner",
"dmaType": "network_banner",
"options": {
"title": "Hello",
"description": "Can not connect to server.",
"type": "error"
},
"success": {},
"error": {
"type": "$util.alert",
"dmaType": "network_banner",
"options": {
"title": "Hello",
"description": "Do you want to exit?",
"positiveText": "Yes",
"negetiveText": "No",
"form": []
},
"success": {},
"error": {}
}
}
}
},
"error": {}
}
}
},
{
"actionType": "normal_noconfirm_noapi_change",
"chainTemplate": {
"type": "$global.set",
"dmaType": "set_global",
"options": {
"output1": "{{$get.result.resultData}}"
},
"success": {
"type": "$href",
"dmaType": "change_page",
"options": {
"url": "www.mylinkurl.com/myfile.json"
},
"success": {},
"error": {}
},
"error": {}
}
},
{
"actionType": "normal_noconfirm_noapi_self",
"chainTemplate": {
"type": "$global.set",
"dmaType": "set_global",
"options": {
"output1": "{{$get.result.resultData}}"
},
"success": {
},
"error": {}
}
},
{
"actionType" : "refreshMap_confirm_api_refresh",
"chainTemplate" : {
"type" : "$util.alert",
"dmaType" : "confirm_dialog",
"options" : {
"title" : "Hello",
"description" : "This is a message",
"positiveText" : "Yes",
"negetiveText" : "No"
},
"success" : {
"type" : "$loading",
"dmaType" : "open_loading",
"options" : {
"lock" : "true"
},
"success" : {
"type" : "$set",
"dmaType" : "set_global_to_api",
"options" : {},
"success" : {
"type" : "$network.request",
"dmaType" : "network_request",
"options" : {
"url" : "http://www.dma.beebuddy.net/myfile.json",
"method" : "post",
"header" : {
"content_type" : "json"
},
"data" : {}
},
"success" : {
"type" : "$set",
"dmaType" : "response_to_local",
"options" : {
"result" : "{{$jason}}"
},
"success" : {
"type" : "$loading",
"dmaType" : "hide_loading",
"options" : {
"lock" : "false"
},
"success" : {
"type" : "$util.condition",
"dmaType" : "check_condition",
"options" : {
"expression" : "true"
},
"success" : {
"type" : "$global.set",
"dmaType" : "set_global",
"options" : {
"output1" : "{{$get.result.resultData}}"
},
"success" : {
"type" : "$util.property",
"dmaType" : "util_property",
"options" : {
"name" : "",
"value" : "Holy shit!!!",
"data_source" : "data_source",
"visible" : "true",
"enable" : "true"
},
"success" : {},
"error" : {}
},
"error" : {}
},
"error" : {
"type" : "$util.banner",
"dmaType" : "condition_Banner",
"options" : {
"title" : "Hello",
"description" : "{{$get.result.resultMessage}}",
"type" : "error"
},
"success" : {},
"error" : {}
}
}
}
},
"error" : {
"type" : "$loading",
"dmaType" : "hide_loading",
"options" : {
"lock" : "false"
},
"success" : {
"type" : "$util.banner",
"dmaType" : "network_banner",
"options" : {
"title" : "Hello",
"description" : "Can not connect to server.",
"type" : "error"
},
"success" : {},
"error" : {
"type" : "$util.alert",
"dmaType" : "network_banner",
"options" : {
"title" : "Hello",
"description" : "Do you want to exit?",
"positiveText" : "Yes",
"negetiveText" : "No",
"form" : []
},
"success" : {},
"error" : {}
}
}
}
},
"error" : {}
}
},
"error" : {}
}
},
{
"actionType" : "refreshMap_noconfirm_api_refresh",
"chainTemplate" : {
"type" : "$loading",
"dmaType" : "open_loading",
"options" : {
"lock" : "true"
},
"success" : {
"type" : "$set",
"dmaType" : "set_global_to_api",
"options" : {},
"success" : {
"type" : "$network.request",
"dmaType" : "network_request",
"options" : {
"url" : "http://www.dma.beebuddy.net/myfile.json",
"method" : "post",
"header" : {
"content_type" : "json"
},
"data" : {}
},
"success" : {
"type" : "$set",
"dmaType" : "response_to_local",
"options" : {
"result" : "{{$jason}}"
},
"success" : {
"type" : "$loading",
"dmaType" : "hide_loading",
"options" : {
"lock" : "false"
},
"success" : {
"type" : "$util.condition",
"dmaType" : "check_condition",
"options" : {
"expression" : "true"
},
"success" : {
"type" : "$global.set",
"dmaType" : "set_global",
"options" : {
"output1" : "{{$get.result.resultData}}"
},
"success" : {
"type" : "$util.property",
"dmaType" : "util_property",
"options" : {
"name" : "",
"value" : "Holy shit!!!",
"data_source" : "data_source",
"visible" : "true",
"enable" : "true"
},
"success" : {},
"error" : {}
},
"error" : {}
},
"error" : {
"type" : "$util.banner",
"dmaType" : "condition_Banner",
"options" : {
"title" : "Hello",
"description" : "{{$get.result.resultMessage}}",
"type" : "error"
},
"success" : {},
"error" : {}
}
}
}
},
"error" : {
"type" : "$loading",
"dmaType" : "hide_loading",
"options" : {
"lock" : "false"
},
"success" : {
"type" : "$util.banner",
"dmaType" : "network_banner",
"options" : {
"title" : "Hello",
"description" : "Can not connect to server.",
"type" : "error"
},
"success" : {},
"error" : {
"type" : "$util.alert",
"dmaType" : "network_banner",
"options" : {
"title" : "Hello",
"description" : "Do you want to exit?",
"positiveText" : "Yes",
"negetiveText" : "No",
"form" : []
},
"success" : {},
"error" : {}
}
}
}
},
"error" : {}
}
}
}
]
)
EOF
#!/bin/bash
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7019 <<EOF
use SERVICEGATEWAY
db.auth("mongoapp", "mOng0@pp")
db.createCollection("admin_user", {})
db.admin_user.insert( {
"username" : "admin",
"password" : "ySqCXldxK0qoIWrzqdITXQ=="
} )
db.createCollection('external_apis_config_publish', {})
db.createCollection('external_apis_config_temp', {})
db.createCollection('external_apis_type', {})
db.external_apis_type.insert([{
"_id" : 1,
"labelName" : "Static - Dropdown",
"value" : "staticdropdown",
"active" : true
},{
"_id" : 2,
"labelName" : "Web Service - Dropdown",
"value" : "webservicedropdown",
"active" : true
},{
"_id" : 3,
"labelName" : "Web Service - APIs",
"value" : "webserviceapis",
"active" : true
},{
"_id" : 4,
"labelName" : "JSON Service - APIs",
"value" : "jsonserviceapis",
"active" : true
}])
EOF
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!