Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ADITO_Update_Upgrade
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xrm
ADITO_Update_Upgrade
Commits
c1dcbd42
Commit
c1dcbd42
authored
4 years ago
by
S.Listl
Browse files
Options
Downloads
Patches
Plain Diff
Workflow serviceTask parameters
parent
6eae1710
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
process/workflowServiceTaskParams_rest/process.js
+15
-4
15 additions, 4 deletions
process/workflowServiceTaskParams_rest/process.js
with
15 additions
and
4 deletions
process/workflowServiceTaskParams_rest/process.js
+
15
−
4
View file @
c1dcbd42
import
(
"
Contact_lib
"
);
import
(
"
KeywordData_lib
"
);
import
(
"
system.translate
"
);
import
(
"
KeywordRegistry_basic
"
);
...
...
@@ -117,10 +118,20 @@ function restget (pRequest)
{
var
templates
=
newSelect
(
"
DOCUMENTTEMPLATEID, NAME
"
)
.
from
(
"
DOCUMENTTEMPLATE
"
)
.
where
(
"
DOCUMENTTEMPLATE.KIND
"
,
$KeywordRegistry
.
documentTemplateType
$mail
())
.
table
();
var
contacts
=
newSelect
([
"
CONTACTID
"
,
new
ContactTitleRenderer
(
Contact
.
createWithColumnPreset
(),
ContactTitleRenderer
.
OPTIONS
.
IncludeOrganisation
).
asSql
()])
.
from
(
ContactUtils
.
getFullContactString
())
.
where
(
"
CONTACT.ORGANISATION_ID
"
,
"
0
"
,
SqlBuilder
.
NOT_EQUAL
())
.
or
(
newWhere
(
"
CONTACT.ORGANISATION_ID
"
,
"
0
"
)
.
and
(
"
CONTACT.PERSON_ID is not null
"
))
.
orderBy
(
"
ORGANISATION.CUSTOMERCODE asc, ORGANISATION.NAME asc, PERSON.LASTNAME asc, PERSON.FIRSTNAME asc
"
)
.
table
();
return
[
new
Parameter
(
"
documentTemplateId
"
,
"
Document template
"
,
Types
.
ENUM
,
_mapToItemArray
(
templates
)),
new
Parameter
(
"
recipientContactId
"
,
"
Recipient
"
,
Types
.
ENUM
)
new
Parameter
(
"
recipientContactId
"
,
"
Recipient
"
,
Types
.
ENUM
,
_mapToItemArray
(
contacts
)
)
];
},
SetAttribute_workflowService
:
function
(
pCurrentValues
)
...
...
@@ -168,9 +179,9 @@ function restget (pRequest)
new
Parameter
(
"
attributeId
"
,
"
Attribute
"
,
Types
.
ENUM
,
attributes
,
true
)
];
if
(
c
urrentValues
.
attributeId
&&
c
urrentValues
.
attributeId
.
value
)
if
(
pC
urrentValues
.
attributeId
&&
pC
urrentValues
.
attributeId
.
value
)
{
var
selectedAttributeId
=
c
urrentValues
.
attributeId
.
value
;
var
selectedAttributeId
=
pC
urrentValues
.
attributeId
.
value
;
var
attributeType
=
AttributeUtil
.
getAttributeType
(
selectedAttributeId
);
var
listValues
=
AttributeUtil
.
getPossibleListValues
(
selectedAttributeId
,
attributeType
);
var
enumValues
,
paramType
;
...
...
@@ -202,7 +213,7 @@ function restget (pRequest)
var
parameters
;
if
(
jditoProcess
in
parameterConfiguration
&&
typeof
parameterConfiguration
[
jditoProcess
]
===
"
function
"
)
parameters
=
parameterConfiguration
[
jditoProcess
]();
parameters
=
parameterConfiguration
[
jditoProcess
](
currentValues
);
if
(
!
parameters
)
parameters
=
[];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment