Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bp_custom
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mikhail Gashenko
bp_custom
Commits
a9db2f2c
Commit
a9db2f2c
authored
Jan 30, 2017
by
everdarkgreen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JsonNode: (draft14) adding headers to empty card
parent
6ebd14df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
Main.java
src/main/java/kz/arta/synergy/astdev/custom_bp/Main.java
+14
-2
No files found.
src/main/java/kz/arta/synergy/astdev/custom_bp/Main.java
View file @
a9db2f2c
...
@@ -115,8 +115,6 @@ public class Main implements MessageListener {
...
@@ -115,8 +115,6 @@ public class Main implements MessageListener {
// Configure ObjectMapper
// Configure ObjectMapper
OBJECT_MAPPER
.
configure
(
DeserializationConfig
.
Feature
.
FAIL_ON_UNKNOWN_PROPERTIES
,
false
);
OBJECT_MAPPER
.
configure
(
DeserializationConfig
.
Feature
.
FAIL_ON_UNKNOWN_PROPERTIES
,
false
);
constructTableHeader
();
// SOURCE FORM: Получение данных исходной формы (той, по которой запущен маршрут)
// SOURCE FORM: Получение данных исходной формы (той, по которой запущен маршрут)
URL
sourceFormURL
=
new
URL
(
SYNERGY_ADDRESS
+
"/rest/api/asforms/data/"
+
SOURCE_FORM_DATA_UUID
);
URL
sourceFormURL
=
new
URL
(
SYNERGY_ADDRESS
+
"/rest/api/asforms/data/"
+
SOURCE_FORM_DATA_UUID
);
String
sourceFormDataAsString
=
synergyApiGetString
(
sourceFormURL
);
String
sourceFormDataAsString
=
synergyApiGetString
(
sourceFormURL
);
...
@@ -287,6 +285,20 @@ public class Main implements MessageListener {
...
@@ -287,6 +285,20 @@ public class Main implements MessageListener {
tableDataNodesList
.
add
(
n5
);
tableDataNodesList
.
add
(
n5
);
tableDataNodesList
.
add
(
n6
);
tableDataNodesList
.
add
(
n6
);
tableDataNodesList
.
add
(
n7
);
tableDataNodesList
.
add
(
n7
);
}
else
{
// get root data node, it is our target
AsNode
rootDataNode
=
findNode
(
targetFormData
,
"data"
);
// construct new "table" node
AsNode
newDataNode
=
new
AsNode
();
List
<
AsNode
>
header
=
constructTableHeader
();
// pushing fields to new node
newDataNode
.
setId
(
"table"
);
newDataNode
.
setType
(
"appendable_table"
);
newDataNode
.
setKey
(
""
);
newDataNode
.
setData
(
header
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment