Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JeeSpringCloud
Commits
e2a64d42
Commit
e2a64d42
authored
Nov 12, 2018
by
Huang
Browse files
no commit message
parent
0844dd86
Changes
414
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
14 of 414+
files are displayed.
Plain diff
Email patch
JeeSpringCloud/jeespring-web/src/main/webapp/act/process-editor/editor-app/configuration/properties/signal-property-write-template.html
0 → 100644
View file @
e2a64d42
<div
ng-controller=
"ActivitiSignalRefCtrl"
>
<select
ng-model=
"property.value"
ng-change=
"signalChanged()"
ng-options=
"signalDefinition.id as (signalDefinition.name + ' (' + signalDefinition.id + ')') for signalDefinition in signalDefinitions"
>
</select>
</div>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/act/process-editor/editor-app/configuration/properties/string-property-write-mode-template.html
0 → 100644
View file @
e2a64d42
<div
ng-controller=
"KisBpmStringPropertyCtrl"
>
<input
type=
"text"
ng-model=
"property.value"
class=
"form-control"
auto-focus
ng-blur=
"inputBlurred()"
ng-keypress=
"enterPressed($event)"
/>
</div>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/act/process-editor/editor-app/configuration/properties/subprocess-reference-display-template.html
0 → 100644
View file @
e2a64d42
<span
ng-if=
"property.value.name"
>
{{property.value.name}}
</span>
<span
ng-if=
"!property.value || !property.value.name"
translate
>
PROPERTY.SUBPROCESSREFERENCE.EMPTY
</span>
JeeSpringCloud/jeespring-web/src/main/webapp/act/process-editor/editor-app/configuration/properties/subprocess-reference-popup.html
0 → 100644
View file @
e2a64d42
<div
class=
"modal"
ng-controller=
"KisBpmCollapsedSubprocessReferencePopupCrtl"
>
<div
class=
"modal-dialog modal-wide"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
ng-click=
"close()"
>
×
</button>
<h2>
{{'PROPERTY.SUBPROCESSREFERENCE.TITLE' | translate}}
<span
ng-show=
"selectedSubProcess != null"
>
- {{selectedSubProcess.name}}
</span>
<span
ng-show=
"selectedSubProcess == null"
>
- {{'PROPERTY.SUBPROCESSREFERENCE.EMPTY' | translate}}
</span>
</h2>
</div>
<div
class=
"modal-body"
>
<div
class=
"detail-group clearfix"
>
<div
class=
"col-xs-12"
>
<div
class=
"alert alert-error"
ng-show=
"(!state.loadingFolders && !state.loadingSubprocesses) && state.subprocessError"
translate
>
PROPERTY.SUBPROCESSREFERENCE.ERROR.SUBPROCESS
</div>
</div>
</div>
<div
class=
"detail-group clearfix"
>
<div
class=
"col-xs-12 editor-item-picker"
>
<div
ng-if=
"!state.loadingSubprocesses && !state.subprocessError"
class=
"col-xs-4 editor-item-picker-component"
ng-repeat=
"sub in subProcesses"
ng-class=
"{'selected' : sub.id == selectedSubProcess.id}"
ng-click=
"selectSubProcess(sub, $event)"
>
<div
class=
"controls"
>
<input
type=
"checkbox"
value=
"option1"
ng-click=
"selectSubProcess(sub, $event)"
ng-checked=
"sub.id == selectedSubProcess.id"
/>
</div>
<h4>
{{sub.name}}
</h4>
<img
src=
"{{config.contextRoot}}/app/rest/models/{{sub.id}}/thumbnail"
/>
</div>
<div
ng-show=
"state.loadingSubprocesses"
>
<p
class=
"loading"
translate
>
PROPERTY.SUBPROCESSREFERENCE.SUBPROCESS.LOADING
</p>
</div>
<div
ng-show=
"!state.loadingSubprocesses && subProcesses.length == 0"
>
<p
translate
>
PROPERTY.SUBPROCESSREFERENCE.SUBPROCESS.EMPTY
</p>
</div>
</div>
</div>
</div>
<div
class=
"modal-footer"
>
<button
ng-disabled=
"state.subprocessError"
ng-click=
"save()"
class=
"btn btn-primary"
translate
>
ACTION.SAVE
</button>
</div>
</div>
</div>
</div>
JeeSpringCloud/jeespring-web/src/main/webapp/act/process-editor/editor-app/configuration/properties/subprocess-reference-write-template.html
0 → 100644
View file @
e2a64d42
<!-- Just need to instantiate the controller, and it will take care of showing the modal dialog -->
<span
ng-controller=
"KisBpmCollapsedSubprocessReferenceCrtl"
>
</span>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/act/process-editor/editor-app/configuration/properties/task-listeners-display-template.html
0 → 100644
View file @
e2a64d42
<span
ng-if=
"!property.noValue"
>
{{'PROPERTY.TASKLISTENERS.VALUE' | translate:property.value.taskListeners}}
</span>
<span
ng-if=
"property.noValue"
translate
>
PROPERTY.TASKLISTENERS.EMPTY
</span>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/act/process-editor/editor-app/configuration/properties/task-listeners-popup.html
0 → 100644
View file @
e2a64d42
<div
class=
"modal"
ng-controller=
"KisBpmTaskListenersPopupCtrl"
>
<div
class=
"modal-dialog modal-wide"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
ng-click=
"close()"
>
×
</button>
<h2>
{{'PROPERTY.PROPERTY.EDIT.TITLE' | translate:property}}
</h2>
</div>
<div
class=
"modal-body"
>
<div
class=
"row row-no-gutter"
>
<div
class=
"col-xs-6"
>
<div
ng-if=
"translationsRetrieved"
class=
"kis-listener-grid"
ng-grid=
"gridOptions"
></div>
<div
class=
"pull-right"
>
<div
class=
"btn-group"
>
<a
class=
"btn btn-icon btn-lg"
rel=
"tooltip"
data-title=
"{{ACTION.MOVE.UP | translate}}"
data-placement=
"bottom"
data-original-title=
""
title=
""
ng-click=
"moveListenerUp()"
><i
class=
"glyphicon glyphicon-arrow-up"
></i></a>
<a
class=
"btn btn-icon btn-lg"
rel=
"tooltip"
data-title=
"{{ACTION.MOVE.DOWN | translate}}"
data-placement=
"bottom"
data-original-title=
""
title=
""
ng-click=
"moveListenerDown()"
><i
class=
"glyphicon glyphicon-arrow-down"
></i></a>
</div>
<div
class=
"btn-group"
>
<a
class=
"btn btn-icon btn-lg"
rel=
"tooltip"
data-title=
"{{ACTION.ADD | translate}}"
data-placement=
"bottom"
data-original-title=
""
title=
""
ng-click=
"addNewListener()"
><i
class=
"glyphicon glyphicon-plus"
></i></a>
<a
class=
"btn btn-icon btn-lg"
rel=
"tooltip"
data-title=
"{{ACTION.REMOVE | translate}}"
data-placement=
"bottom"
data-original-title=
""
title=
""
ng-click=
"removeListener()"
><i
class=
"glyphicon glyphicon-minus"
></i></a>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
ng-show=
"selectedListeners.length > 0"
>
<div
class=
"form-group"
>
<label
for=
"eventField"
>
{{'PROPERTY.TASKLISTENERS.EVENT' | translate}}
</label>
<select
id=
"eventField"
class=
"form-control"
ng-model=
"selectedListeners[0].event"
>
<option>
create
</option>
<option>
assignment
</option>
<option>
complete
</option>
<option>
delete
</option>
</select>
</div>
<div
class=
"form-group"
>
<label
for=
"classField"
>
{{'PROPERTY.TASKLISTENERS.CLASS' | translate}}
</label>
<input
type=
"text"
id=
"classField"
class=
"form-control"
ng-model=
"selectedListeners[0].className"
ng-change=
"listenerDetailsChanged()"
placeholder=
"{{'PROPERTY.TASKLISTENERS.CLASS.PLACEHOLDER' | translate}}"
/>
</div>
<div
class=
"form-group"
>
<label
for=
"expressionField"
>
{{'PROPERTY.TASKLISTENERS.EXPRESSION' | translate}}
</label>
<input
type=
"text"
id=
"expressionField"
class=
"form-control"
ng-model=
"selectedListeners[0].expression"
ng-change=
"listenerDetailsChanged()"
placeholder=
"{{'PROPERTY.TASKLISTENERS.EXPRESSION.PLACEHOLDER' | translate}}"
/>
</div>
<div
class=
"form-group"
>
<label
for=
"delegateExpressionField"
>
{{'PROPERTY.TASKLISTENERS.DELEGATEEXPRESSION' | translate}}
</label>
<input
type=
"text"
id=
"delegateExpressionField"
class=
"form-control"
ng-model=
"selectedListeners[0].delegateExpression"
ng-change=
"listenerDetailsChanged()"
placeholder=
"{{'PROPERTY.TASKLISTENERS.DELEGATEEXPRESSION.PLACEHOLDER' | translate}}"
/>
</div>
</div>
<div
ng-show=
"selectedListeners.length == 0"
class=
"muted no-property-selected"
translate
>
PROPERTY.TASKLISTENERS.UNSELECTED
</div>
</div>
</div>
<div
class=
"row row-no-gutter"
>
<div
class=
"col-xs-6"
>
<div
ng-if=
"translationsRetrieved"
class=
"kis-field-grid"
ng-grid=
"gridFieldOptions"
></div>
<div
class=
"pull-right"
>
<div
class=
"btn-group"
>
<a
class=
"btn btn-icon btn-lg"
rel=
"tooltip"
data-title=
"{{ACTION.MOVE.UP | translate}}"
data-placement=
"bottom"
data-original-title=
""
title=
""
ng-click=
"moveFieldUp()"
><i
class=
"glyphicon glyphicon-arrow-up"
></i></a>
<a
class=
"btn btn-icon btn-lg"
rel=
"tooltip"
data-title=
"{{ACTION.MOVE.DOWN | translate}}"
data-placement=
"bottom"
data-original-title=
""
title=
""
ng-click=
"moveFieldDown()"
><i
class=
"glyphicon glyphicon-arrow-down"
></i></a>
</div>
<div
class=
"btn-group"
>
<a
class=
"btn btn-icon btn-lg"
rel=
"tooltip"
data-title=
"{{ACTION.ADD | translate}}"
data-placement=
"bottom"
data-original-title=
""
title=
""
ng-click=
"addNewField()"
><i
class=
"glyphicon glyphicon-plus"
></i></a>
<a
class=
"btn btn-icon btn-lg"
rel=
"tooltip"
data-title=
"{{ACTION.REMOVE | translate}}"
data-placement=
"bottom"
data-original-title=
""
title=
""
ng-click=
"removeField()"
><i
class=
"glyphicon glyphicon-minus"
></i></a>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
ng-show=
"selectedFields.length > 0"
>
<div
class=
"form-group"
>
<label
for=
"nameField"
>
{{'PROPERTY.TASKLISTENERS.FIELDS.NAME' | translate}}
</label>
<input
type=
"text"
id=
"nameField"
class=
"form-control"
ng-model=
"selectedFields[0].name"
placeholder=
"{{'PROPERTY.TASKLISTENERS.FIELDS.NAME.PLACEHOLDER' | translate}}"
/>
</div>
<div
class=
"form-group"
>
<label
for=
"stringValueField"
>
{{'PROPERTY.TASKLISTENERS.FIELDS.STRINGVALUE' | translate}}
</label>
<input
type=
"text"
id=
"stringValueField"
class=
"form-control"
ng-model=
"selectedFields[0].stringValue"
ng-change=
"fieldDetailsChanged()"
placeholder=
"{{'PROPERTY.TASKLISTENERS.FIELDS.STRINGVALUE.PLACEHOLDER' | translate}}"
/>
</div>
<div
class=
"form-group"
>
<label
for=
"expressionField"
>
{{'PROPERTY.TASKLISTENERS.FIELDS.EXPRESSION' | translate}}
</label>
<input
type=
"text"
id=
"expressionField"
class=
"form-control"
ng-model=
"selectedFields[0].expression"
ng-change=
"fieldDetailsChanged()"
placeholder=
"{{'PROPERTY.TASKLISTENERS.FIELDS.EXPRESSION.PLACEHOLDER' | translate}}"
/>
</div>
<div
class=
"form-group"
>
<label
for=
"stringField"
>
{{'PROPERTY.TASKLISTENERS.FIELDS.STRING' | translate}}
</label>
<textarea
id=
"stringField"
class=
"form-control"
ng-model=
"selectedFields[0].string"
ng-change=
"fieldDetailsChanged()"
placeholder=
"{{'PROPERTY.TASKLISTENERS.FIELDS.STRING.PLACEHOLDER' | translate}}"
></textarea>
</div>
</div>
<div
ng-show=
"selectedFields.length == 0"
class=
"muted no-property-selected"
translate
>
PROPERTY.TASKLISTENERS.FIELDS.EMPTY
</div>
</div>
</div>
</div>
<div
class=
"modal-footer"
>
<button
ng-click=
"cancel()"
class=
"btn btn-primary"
translate
>
ACTION.CANCEL
</button>
<button
ng-click=
"save()"
class=
"btn btn-primary"
translate
>
ACTION.SAVE
</button>
</div>
</div>
</div>
</div>
JeeSpringCloud/jeespring-web/src/main/webapp/act/process-editor/editor-app/configuration/properties/task-listeners-write-template.html
0 → 100644
View file @
e2a64d42
<!-- Just need to instantiate the controller, and it will take care of showing the modal dialog -->
<span
ng-controller=
"KisBpmTaskListenersCtrl"
>
</span>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/act/process-editor/editor-app/configuration/properties/text-popup.html
0 → 100644
View file @
e2a64d42
<div
class=
"modal"
ng-controller=
"KisBpmTextPropertyPopupCtrl"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
ng-click=
"close()"
>
×
</button>
<h3>
{{'PROPERTY.PROPERTY.EDIT.TITLE' | translate:property}}
</h3>
</div>
<div
class=
"modal-body"
>
<p><textarea
auto-focus
class=
"form-control"
ng-model=
"property.value"
style=
"width:70%; height:100%; max-width: 100%; max-height: 100%; min-height: 200px"
/></p>
</div>
<div
class=
"modal-footer"
>
<button
ng-click=
"save()"
class=
"btn btn-primary"
translate
>
ACTION.SAVE
</button>
</div>
</div>
</div>
</div>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/act/process-editor/editor-app/configuration/properties/text-property-write-template.html
0 → 100644
View file @
e2a64d42
<!-- Just need to instantiate the controller, and it will take care of showing the modal dialog -->
<span
ng-controller=
"KisBpmTextPropertyCtrl"
>
</span>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/act/process-editor/editor-app/configuration/toolbar-custom-actions.js
0 → 100644
View file @
e2a64d42
/*
* Activiti Modeler component part of the Activiti project
* Copyright 2005-2014 Alfresco Software, Ltd. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
JeeSpringCloud/jeespring-web/src/main/webapp/act/process-editor/editor-app/configuration/toolbar-default-actions.js
0 → 100644
View file @
e2a64d42
/*
* Activiti Modeler component part of the Activiti project
* Copyright 2005-2014 Alfresco Software, Ltd. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
'
use strict
'
;
var
KISBPM
=
KISBPM
||
{};
KISBPM
.
TOOLBAR
=
{
ACTIONS
:
{
saveModel
:
function
(
services
)
{
var
modal
=
services
.
$modal
({
backdrop
:
true
,
keyboard
:
true
,
template
:
'
editor-app/popups/save-model.html?version=
'
+
Date
.
now
(),
scope
:
services
.
$scope
});
},
undo
:
function
(
services
)
{
// Get the last commands
var
lastCommands
=
services
.
$scope
.
undoStack
.
pop
();
if
(
lastCommands
)
{
// Add the commands to the redo stack
services
.
$scope
.
redoStack
.
push
(
lastCommands
);
// Force refresh of selection, might be that the undo command
// impacts properties in the selected item
if
(
services
.
$rootScope
&&
services
.
$rootScope
.
forceSelectionRefresh
)
{
services
.
$rootScope
.
forceSelectionRefresh
=
true
;
}
// Rollback every command
for
(
var
i
=
lastCommands
.
length
-
1
;
i
>=
0
;
--
i
)
{
lastCommands
[
i
].
rollback
();
}
// Update and refresh the canvas
services
.
$scope
.
editor
.
handleEvents
({
type
:
ORYX
.
CONFIG
.
EVENT_UNDO_ROLLBACK
,
commands
:
lastCommands
});
// Update
services
.
$scope
.
editor
.
getCanvas
().
update
();
services
.
$scope
.
editor
.
updateSelection
();
}
var
toggleUndo
=
false
;
if
(
services
.
$scope
.
undoStack
.
length
==
0
)
{
toggleUndo
=
true
;
}
var
toggleRedo
=
false
;
if
(
services
.
$scope
.
redoStack
.
length
>
0
)
{
toggleRedo
=
true
;
}
if
(
toggleUndo
||
toggleRedo
)
{
for
(
var
i
=
0
;
i
<
services
.
$scope
.
items
.
length
;
i
++
)
{
var
item
=
services
.
$scope
.
items
[
i
];
if
(
toggleUndo
&&
item
.
action
===
'
KISBPM.TOOLBAR.ACTIONS.undo
'
)
{
services
.
$scope
.
safeApply
(
function
()
{
item
.
enabled
=
false
;
});
}
else
if
(
toggleRedo
&&
item
.
action
===
'
KISBPM.TOOLBAR.ACTIONS.redo
'
)
{
services
.
$scope
.
safeApply
(
function
()
{
item
.
enabled
=
true
;
});
}
}
}
},
redo
:
function
(
services
)
{
// Get the last commands from the redo stack
var
lastCommands
=
services
.
$scope
.
redoStack
.
pop
();
if
(
lastCommands
)
{
// Add this commands to the undo stack
services
.
$scope
.
undoStack
.
push
(
lastCommands
);
// Force refresh of selection, might be that the redo command
// impacts properties in the selected item
if
(
services
.
$rootScope
&&
services
.
$rootScope
.
forceSelectionRefresh
)
{
services
.
$rootScope
.
forceSelectionRefresh
=
true
;
}
// Execute those commands
lastCommands
.
each
(
function
(
command
)
{
command
.
execute
();
});
// Update and refresh the canvas
services
.
$scope
.
editor
.
handleEvents
({
type
:
ORYX
.
CONFIG
.
EVENT_UNDO_EXECUTE
,
commands
:
lastCommands
});
// Update
services
.
$scope
.
editor
.
getCanvas
().
update
();
services
.
$scope
.
editor
.
updateSelection
();
}
var
toggleUndo
=
false
;
if
(
services
.
$scope
.
undoStack
.
length
>
0
)
{
toggleUndo
=
true
;
}
var
toggleRedo
=
false
;
if
(
services
.
$scope
.
redoStack
.
length
==
0
)
{
toggleRedo
=
true
;
}
if
(
toggleUndo
||
toggleRedo
)
{
for
(
var
i
=
0
;
i
<
services
.
$scope
.
items
.
length
;
i
++
)
{
var
item
=
services
.
$scope
.
items
[
i
];
if
(
toggleUndo
&&
item
.
action
===
'
KISBPM.TOOLBAR.ACTIONS.undo
'
)
{
services
.
$scope
.
safeApply
(
function
()
{
item
.
enabled
=
true
;
});
}
else
if
(
toggleRedo
&&
item
.
action
===
'
KISBPM.TOOLBAR.ACTIONS.redo
'
)
{
services
.
$scope
.
safeApply
(
function
()
{
item
.
enabled
=
false
;
});
}
}
}
},
cut
:
function
(
services
)
{
KISBPM
.
TOOLBAR
.
ACTIONS
.
_getOryxEditPlugin
(
services
.
$scope
).
editCut
();
for
(
var
i
=
0
;
i
<
services
.
$scope
.
items
.
length
;
i
++
)
{
var
item
=
services
.
$scope
.
items
[
i
];
if
(
item
.
action
===
'
KISBPM.TOOLBAR.ACTIONS.paste
'
)
{
services
.
$scope
.
safeApply
(
function
()
{
item
.
enabled
=
true
;
});
}
}
},
copy
:
function
(
services
)
{
KISBPM
.
TOOLBAR
.
ACTIONS
.
_getOryxEditPlugin
(
services
.
$scope
).
editCopy
();
for
(
var
i
=
0
;
i
<
services
.
$scope
.
items
.
length
;
i
++
)
{
var
item
=
services
.
$scope
.
items
[
i
];
if
(
item
.
action
===
'
KISBPM.TOOLBAR.ACTIONS.paste
'
)
{
services
.
$scope
.
safeApply
(
function
()
{
item
.
enabled
=
true
;
});
}
}
},
paste
:
function
(
services
)
{
KISBPM
.
TOOLBAR
.
ACTIONS
.
_getOryxEditPlugin
(
services
.
$scope
).
editPaste
();
},
deleteItem
:
function
(
services
)
{
KISBPM
.
TOOLBAR
.
ACTIONS
.
_getOryxEditPlugin
(
services
.
$scope
).
editDelete
();
},
addBendPoint
:
function
(
services
)
{
var
dockerPlugin
=
KISBPM
.
TOOLBAR
.
ACTIONS
.
_getOryxDockerPlugin
(
services
.
$scope
);
var
enableAdd
=
!
dockerPlugin
.
enabledAdd
();
dockerPlugin
.
setEnableAdd
(
enableAdd
);
if
(
enableAdd
)
{
dockerPlugin
.
setEnableRemove
(
false
);
document
.
body
.
style
.
cursor
=
'
pointer
'
;
}
else
{
document
.
body
.
style
.
cursor
=
'
default
'
;
}
},
removeBendPoint
:
function
(
services
)
{
var
dockerPlugin
=
KISBPM
.
TOOLBAR
.
ACTIONS
.
_getOryxDockerPlugin
(
services
.
$scope
);
var
enableRemove
=
!
dockerPlugin
.
enabledRemove
();
dockerPlugin
.
setEnableRemove
(
enableRemove
);
if
(
enableRemove
)
{
dockerPlugin
.
setEnableAdd
(
false
);
document
.
body
.
style
.
cursor
=
'
pointer
'
;
}
else
{
document
.
body
.
style
.
cursor
=
'
default
'
;
}
},
/**
* Helper method: fetches the Oryx Edit plugin from the provided scope,
* if not on the scope, it is created and put on the scope for further use.
*
* It's important to reuse the same EditPlugin while the same scope is active,
* as the clipboard is stored for the whole lifetime of the scope.
*/
_getOryxEditPlugin
:
function
(
$scope
)
{
if
(
$scope
.
oryxEditPlugin
===
undefined
||
$scope
.
oryxEditPlugin
===
null
)
{
$scope
.
oryxEditPlugin
=
new
ORYX
.
Plugins
.
Edit
(
$scope
.
editor
);
}
return
$scope
.
oryxEditPlugin
;
},
zoomIn
:
function
(
services
)
{
KISBPM
.
TOOLBAR
.
ACTIONS
.
_getOryxViewPlugin
(
services
.
$scope
).
zoom
([
1.0
+
ORYX
.
CONFIG
.
ZOOM_OFFSET
]);
},
zoomOut
:
function
(
services
)
{
KISBPM
.
TOOLBAR
.
ACTIONS
.
_getOryxViewPlugin
(
services
.
$scope
).
zoom
([
1.0
-
ORYX
.
CONFIG
.
ZOOM_OFFSET
]);
},
zoomActual
:
function
(
services
)
{
KISBPM
.
TOOLBAR
.
ACTIONS
.
_getOryxViewPlugin
(
services
.
$scope
).
setAFixZoomLevel
(
1
);
},
zoomFit
:
function
(
services
)
{
KISBPM
.
TOOLBAR
.
ACTIONS
.
_getOryxViewPlugin
(
services
.
$scope
).
zoomFitToModel
();
},
alignVertical
:
function
(
services
)
{
KISBPM
.
TOOLBAR
.
ACTIONS
.
_getOryxArrangmentPlugin
(
services
.
$scope
).
alignShapes
([
ORYX
.
CONFIG
.
EDITOR_ALIGN_MIDDLE
]);
},
alignHorizontal
:
function
(
services
)
{
KISBPM
.
TOOLBAR
.
ACTIONS
.
_getOryxArrangmentPlugin
(
services
.
$scope
).
alignShapes
([
ORYX
.
CONFIG
.
EDITOR_ALIGN_CENTER
]);
},
sameSize
:
function
(
services
)
{
KISBPM
.
TOOLBAR
.
ACTIONS
.
_getOryxArrangmentPlugin
(
services
.
$scope
).
alignShapes
([
ORYX
.
CONFIG
.
EDITOR_ALIGN_SIZE
]);
},
closeEditor
:
function
(
services
)
{
//window.location.href = "./";
if
(
window
.
confirm
(
'
请确认数据是否已经保存,确定要关闭编辑器吗?
'
))
window
.
close
();
//add by cheshuyan at 2016.05.21
},
/**
* Helper method: fetches the Oryx View plugin from the provided scope,
* if not on the scope, it is created and put on the scope for further use.
*/
_getOryxViewPlugin
:
function
(
$scope
)
{
if
(
$scope
.
oryxViewPlugin
===
undefined
||
$scope
.
oryxViewPlugin
===
null
)
{
$scope
.
oryxViewPlugin
=
new
ORYX
.
Plugins
.
View
(
$scope
.
editor
);
}
return
$scope
.
oryxViewPlugin
;
},
_getOryxArrangmentPlugin
:
function
(
$scope
)
{
if
(
$scope
.
oryxArrangmentPlugin
===
undefined
||
$scope
.
oryxArrangmentPlugin
===
null
)
{
$scope
.
oryxArrangmentPlugin
=
new
ORYX
.
Plugins
.
Arrangement
(
$scope
.
editor
);
}
return
$scope
.
oryxArrangmentPlugin
;
},
_getOryxDockerPlugin
:
function
(
$scope
)
{
if
(
$scope
.
oryxDockerPlugin
===
undefined
||
$scope
.
oryxDockerPlugin
===
null
)
{
$scope
.
oryxDockerPlugin
=
new
ORYX
.
Plugins
.
AddDocker
(
$scope
.
editor
);
}
return
$scope
.
oryxDockerPlugin
;
}
}
};
/** Custom controller for the save dialog */
var
SaveModelCtrl
=
[
'
$rootScope
'
,
'
$scope
'
,
'
$http
'
,
'
$route
'
,
'
$location
'
,
function
(
$rootScope
,
$scope
,
$http
,
$route
,
$location
)
{
var
modelMetaData
=
$scope
.
editor
.
getModelMetaData
();
var
description
=
''
;
if
(
modelMetaData
.
description
)
{
description
=
modelMetaData
.
description
;
}
var
saveDialog
=
{
'
name
'
:
modelMetaData
.
name
,
'
description
'
:
description
};
$scope
.
saveDialog
=
saveDialog
;
var
json
=
$scope
.
editor
.
getJSON
();
json
=
JSON
.
stringify
(
json
);
var
params
=
{
modeltype
:
modelMetaData
.
model
.
modelType
,
json_xml
:
json
,
name
:
'
model
'
};
$scope
.
status
=
{
loading
:
false
};
$scope
.
close
=
function
()
{
$scope
.
$hide
();
};
$scope
.
saveAndClose
=
function
()
{
$scope
.
save
(
function
()
{
//window.location.href = "./";
if
(
window
.
confirm
(
'
请确认数据是否已经保存,确定要关闭编辑器吗?
'
))
window
.
close
();
//add by cheshuyan at 2016.05.21
});
};
$scope
.
save
=
function
(
successCallback
)
{
if
(
!
$scope
.
saveDialog
.
name
||
$scope
.
saveDialog
.
name
.
length
==
0
)
{
return
;
}
// Indicator spinner image
$scope
.
status
=
{
loading
:
true
};
modelMetaData
.
name
=
$scope
.
saveDialog
.
name
;
modelMetaData
.
description
=
$scope
.
saveDialog
.
description
;
var
json
=
$scope
.
editor
.
getJSON
();
json
=
JSON
.
stringify
(
json
);
var
selection
=
$scope
.
editor
.
getSelection
();
$scope
.
editor
.
setSelection
([]);
// Get the serialized svg image source
var
svgClone
=
$scope
.
editor
.
getCanvas
().
getSVGRepresentation
(
true
);
$scope
.
editor
.
setSelection
(
selection
);
if
(
$scope
.
editor
.
getCanvas
().
properties
[
"
oryx-showstripableelements
"
]
===
false
)
{
var
stripOutArray
=
jQuery
(
svgClone
).
find
(
"
.stripable-element
"
);
for
(
var
i
=
stripOutArray
.
length
-
1
;
i
>=
0
;
i
--
)
{
stripOutArray
[
i
].
remove
();
}
}
// Remove all forced stripable elements
var
stripOutArray
=
jQuery
(
svgClone
).
find
(
"
.stripable-element-force
"
);
for
(
var
i
=
stripOutArray
.
length
-
1
;
i
>=
0
;
i
--
)
{
stripOutArray
[
i
].
remove
();
}
// Parse dom to string
var
svgDOM
=
DataManager
.
serialize
(
svgClone
);
var
params
=
{
json_xml
:
json
,
svg_xml
:
svgDOM
,
name
:
$scope
.
saveDialog
.
name
,
description
:
$scope
.
saveDialog
.
description
};
// Update
$http
({
method
:
'
PUT
'
,
data
:
params
,
ignoreErrors
:
true
,
headers
:
{
'
Accept
'
:
'
application/json
'
,
'
Content-Type
'
:
'
application/x-www-form-urlencoded; charset=UTF-8
'
},
transformRequest
:
function
(
obj
)
{
var
str
=
[];
for
(
var
p
in
obj
)
{
str
.
push
(
encodeURIComponent
(
p
)
+
"
=
"
+
encodeURIComponent
(
obj
[
p
]));
}
return
str
.
join
(
"
&
"
);
},
url
:
KISBPM
.
URL
.
putModel
(
modelMetaData
.
modelId
)})
.
success
(
function
(
data
,
status
,
headers
,
config
)
{
$scope
.
editor
.
handleEvents
({
type
:
ORYX
.
CONFIG
.
EVENT_SAVED
});
$scope
.
modelData
.
name
=
$scope
.
saveDialog
.
name
;
$scope
.
modelData
.
lastUpdated
=
data
.
lastUpdated
;
$scope
.
status
.
loading
=
false
;
$scope
.
$hide
();
// Fire event to all who is listening
var
saveEvent
=
{
type
:
KISBPM
.
eventBus
.
EVENT_TYPE_MODEL_SAVED
,
model
:
params
,
modelId
:
modelMetaData
.
modelId
,
eventType
:
'
update-model
'
};
KISBPM
.
eventBus
.
dispatch
(
KISBPM
.
eventBus
.
EVENT_TYPE_MODEL_SAVED
,
saveEvent
);
// Reset state
$scope
.
error
=
undefined
;
$scope
.
status
.
loading
=
false
;
// Execute any callback
if
(
successCallback
)
{
successCallback
();
}
})
.
error
(
function
(
data
,
status
,
headers
,
config
)
{
$scope
.
error
=
{};
console
.
log
(
'
Something went wrong when updating the process model:
'
+
JSON
.
stringify
(
data
));
$scope
.
status
.
loading
=
false
;
});
};
}];
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/act/process-editor/editor-app/configuration/toolbar.js
0 → 100644
View file @
e2a64d42
/*
* Activiti Modeler component part of the Activiti project
* Copyright 2005-2014 Alfresco Software, Ltd. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
'
use strict
'
;
var
KISBPM
=
KISBPM
||
{};
KISBPM
.
TOOLBAR_CONFIG
=
{
"
items
"
:
[
{
"
type
"
:
"
button
"
,
"
title
"
:
"
TOOLBAR.ACTION.SAVE
"
,
"
cssClass
"
:
"
editor-icon editor-icon-save
"
,
"
action
"
:
"
KISBPM.TOOLBAR.ACTIONS.saveModel
"
},
{
"
type
"
:
"
separator
"
,
"
title
"
:
""
,
"
cssClass
"
:
"
toolbar-separator
"
},
{
"
type
"
:
"
button
"
,
"
title
"
:
"
TOOLBAR.ACTION.CUT
"
,
"
cssClass
"
:
"
editor-icon editor-icon-cut
"
,
"
action
"
:
"
KISBPM.TOOLBAR.ACTIONS.cut
"
,
"
enabled
"
:
false
,
"
enabledAction
"
:
"
element
"
},
{
"
type
"
:
"
button
"
,
"
title
"
:
"
TOOLBAR.ACTION.COPY
"
,
"
cssClass
"
:
"
editor-icon editor-icon-copy
"
,
"
action
"
:
"
KISBPM.TOOLBAR.ACTIONS.copy
"
,
"
enabled
"
:
false
,
"
enabledAction
"
:
"
element
"
},
{
"
type
"
:
"
button
"
,
"
title
"
:
"
TOOLBAR.ACTION.PASTE
"
,
"
cssClass
"
:
"
editor-icon editor-icon-paste
"
,
"
action
"
:
"
KISBPM.TOOLBAR.ACTIONS.paste
"
,
"
enabled
"
:
false
},
{
"
type
"
:
"
button
"
,
"
title
"
:
"
TOOLBAR.ACTION.DELETE
"
,
"
cssClass
"
:
"
editor-icon editor-icon-delete
"
,
"
action
"
:
"
KISBPM.TOOLBAR.ACTIONS.deleteItem
"
,
"
enabled
"
:
false
,
"
enabledAction
"
:
"
element
"
},
{
"
type
"
:
"
separator
"
,
"
title
"
:
"
TOOLBAR.ACTION.SAVE
"
,
"
cssClass
"
:
"
toolbar-separator
"
},
{
"
type
"
:
"
button
"
,
"
title
"
:
"
TOOLBAR.ACTION.REDO
"
,
"
cssClass
"
:
"
editor-icon editor-icon-redo
"
,
"
action
"
:
"
KISBPM.TOOLBAR.ACTIONS.redo
"
,
"
enabled
"
:
false
},
{
"
type
"
:
"
button
"
,
"
title
"
:
"
TOOLBAR.ACTION.UNDO
"
,
"
cssClass
"
:
"
editor-icon editor-icon-undo
"
,
"
action
"
:
"
KISBPM.TOOLBAR.ACTIONS.undo
"
,
"
enabled
"
:
false
},
{
"
type
"
:
"
separator
"
,
"
title
"
:
"
TOOLBAR.ACTION.SAVE
"
,
"
cssClass
"
:
"
toolbar-separator
"
},
{
"
type
"
:
"
button
"
,
"
title
"
:
"
TOOLBAR.ACTION.ALIGNVERTICAL
"
,
"
cssClass
"
:
"
editor-icon editor-icon-align-vertical
"
,
"
action
"
:
"
KISBPM.TOOLBAR.ACTIONS.alignVertical
"
,
"
enabled
"
:
false
,
"
enabledAction
"
:
"
element
"
,
"
minSelectionCount
"
:
2
},
{
"
type
"
:
"
button
"
,
"
title
"
:
"
TOOLBAR.ACTION.ALIGNHORIZONTAL
"
,
"
cssClass
"
:
"
editor-icon editor-icon-align-horizontal
"
,
"
action
"
:
"
KISBPM.TOOLBAR.ACTIONS.alignHorizontal
"
,
"
enabledAction
"
:
"
element
"
,
"
enabled
"
:
false
,
"
minSelectionCount
"
:
2
},
{
"
type
"
:
"
button
"
,
"
title
"
:
"
TOOLBAR.ACTION.SAMESIZE
"
,
"
cssClass
"
:
"
editor-icon editor-icon-same-size
"
,
"
action
"
:
"
KISBPM.TOOLBAR.ACTIONS.sameSize
"
,
"
enabledAction
"
:
"
element
"
,
"
enabled
"
:
false
,
"
minSelectionCount
"
:
2
},
{
"
type
"
:
"
separator
"
,
"
title
"
:
"
TOOLBAR.ACTION.SAVE
"
,
"
cssClass
"
:
"
toolbar-separator
"
},
{
"
type
"
:
"
button
"
,
"
title
"
:
"
TOOLBAR.ACTION.ZOOMIN
"
,
"
cssClass
"
:
"
editor-icon editor-icon-zoom-in
"
,
"
action
"
:
"
KISBPM.TOOLBAR.ACTIONS.zoomIn
"
},
{
"
type
"
:
"
button
"
,
"
title
"
:
"
TOOLBAR.ACTION.ZOOMOUT
"
,
"
cssClass
"
:
"
editor-icon editor-icon-zoom-out
"
,
"
action
"
:
"
KISBPM.TOOLBAR.ACTIONS.zoomOut
"
},
{
"
type
"
:
"
button
"
,
"
title
"
:
"
TOOLBAR.ACTION.ZOOMACTUAL
"
,
"
cssClass
"
:
"
editor-icon editor-icon-zoom-actual
"
,
"
action
"
:
"
KISBPM.TOOLBAR.ACTIONS.zoomActual
"
},
{
"
type
"
:
"
button
"
,
"
title
"
:
"
TOOLBAR.ACTION.ZOOMFIT
"
,
"
cssClass
"
:
"
editor-icon editor-icon-zoom-fit
"
,
"
action
"
:
"
KISBPM.TOOLBAR.ACTIONS.zoomFit
"
},
{
"
type
"
:
"
separator
"
,
"
title
"
:
"
TOOLBAR.ACTION.SAVE
"
,
"
cssClass
"
:
"
toolbar-separator
"
},
{
"
type
"
:
"
button
"
,
"
title
"
:
"
TOOLBAR.ACTION.BENDPOINT.ADD
"
,
"
cssClass
"
:
"
editor-icon editor-icon-bendpoint-add
"
,
"
action
"
:
"
KISBPM.TOOLBAR.ACTIONS.addBendPoint
"
,
"
id
"
:
"
add-bendpoint-button
"
},
{
"
type
"
:
"
button
"
,
"
title
"
:
"
TOOLBAR.ACTION.BENDPOINT.REMOVE
"
,
"
cssClass
"
:
"
editor-icon editor-icon-bendpoint-remove
"
,
"
action
"
:
"
KISBPM.TOOLBAR.ACTIONS.removeBendPoint
"
,
"
id
"
:
"
remove-bendpoint-button
"
}
],
"
secondaryItems
"
:
[
{
"
type
"
:
"
button
"
,
"
title
"
:
"
Close
"
,
"
cssClass
"
:
"
editor-icon editor-icon-close
"
,
"
action
"
:
"
KISBPM.TOOLBAR.ACTIONS.closeEditor
"
}
]
};
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/act/process-editor/editor-app/configuration/url-config.js
0 → 100644
View file @
e2a64d42
/*
* Activiti Modeler component part of the Activiti project
* Copyright 2005-2014 Alfresco Software, Ltd. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
var
KISBPM
=
KISBPM
||
{};
KISBPM
.
URL
=
{
getModel
:
function
(
modelId
)
{
return
ACTIVITI
.
CONFIG
.
contextRoot
+
'
/model/
'
+
modelId
+
'
/json
'
;
},
getStencilSet
:
function
()
{
return
ACTIVITI
.
CONFIG
.
contextRoot
+
'
/editor/stencilset?version=
'
+
Date
.
now
();
},
putModel
:
function
(
modelId
)
{
return
ACTIVITI
.
CONFIG
.
contextRoot
+
'
/model/
'
+
modelId
+
'
/save
'
;
}
};
\ No newline at end of file
Prev
1
…
17
18
19
20
21
Next
Write
Preview
Supports
Markdown
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