Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bonita
bonita-studio
Commits
652afaf4
Commit
652afaf4
authored
Sep 10, 2015
by
Romain Bioteau
Committed by
rbioteau
Sep 15, 2015
Browse files
BS-14269
Delete process instances before deleting definition
parent
ca8cf69f
Changes
1
Hide whitespace changes
Inline
Side-by-side
bundles/plugins/org.bonitasoft.studio.form.preview/src/org/bonitasoft/studio/form/preview/FormPreviewOperation.java
View file @
652afaf4
...
...
@@ -285,8 +285,9 @@ public class FormPreviewOperation implements IRunnableWithProgress {
}
protected
void
undeployProcess
(
final
ProcessAPI
processApi
,
final
ProcessDeploymentInfo
info
)
throws
ProcessDefinitionNotFoundException
,
DeletionException
{
if
(
info
.
getName
().
equals
(
lastProcessDeployed
)
&&
info
.
getVersion
().
equals
(
f
ormPreviewInit
.
VERSION
))
{
if
(
info
.
getName
().
equals
(
lastProcessDeployed
)
&&
info
.
getVersion
().
equals
(
AbstractF
ormPreviewInit
ialization
.
VERSION
))
{
try
{
processApi
.
deleteProcessInstances
(
info
.
getProcessId
(),
0
,
10
);
if
(
processApi
.
getProcessDeploymentInfo
(
info
.
getProcessId
()).
getActivationState
()
==
ActivationState
.
ENABLED
)
{
processApi
.
disableProcess
(
info
.
getProcessId
());
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment