Re: gpd 3.1.7 release
by Thomas Diesler
That the upload servlet is protected is new to me. Could you please find
out who did this so we know who to talk to?
cheers
-thomas
Koen Aers wrote:
> Hi Thomas,
>
> While testing the deployment of processes from the gpd I came across the
> fact that the deployment servlet in the previous jBPM releases (3.3.1
> and 3.2.5) is now secured. Also, the connection url for the deployment
> has changed. While the latter is not that much of an issue (as it can be
> changed in the preferences pages of the designer), the former is very
> much so. To be able to make this work again I need to be able to provide
> the credentials in a programmatic way. Maybe you can help me, but I
> couldn't find an easy way to do so as the logon mechanism used is a jsf
> specific one. Additionally, there should be a way to change the user and
> password strings (or store them as preferences). I am not sure if I will
> be able to incorporate these changes before the release.
> In addition, as argued in https://jira.jboss.org/jira/browse/GPD-278 and
> the other related issues, we need to keep the out-of-the-box experience
> as smooth as possible for our community users, so IMO the upload servlet
> does not need to be protected as the SOA platform removes the servlet
> for production use.
> I am not sure if creating a new GPD makes sense if users will not be
> able to deploy their processes.
>
> Regards,
> Koen
--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
BPM Product Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
15 years, 9 months
[Design of JBoss jBPM] - Ending executions API
by heiko.braun@jboss.com
I was just looking at the ActivityExecution interface, it says:
| /** view upon an {@link Execution path of execution} exposed to
| * {@link ActivityBehaviour} implementations.
| *
| * @author Tom Baeyens
| */
| public interface ActivityExecution extends OpenExecution {
|
However it exposes e method to end the execution which states:
| /** ends this execution and all of its child executions.
| *
| * <p>The execution will be removed from it's parent. Potentially this can cause
| * a parent execution to start executing in case this is the last concurrent
| * execution for which the parent is waiting.</p>
| *
| * <p>This method should not be called in {@link ActivityBehaviour}s. It can be called from
| * outside the process execution and in {@link ExternalActivityBehaviour}s. </p> */
| void end();
|
This method should not be called in {@link ActivityBehaviour}s.
Why is in the interface then?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211726#4211726
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211726
15 years, 9 months
[Design of JBoss jBPM] - history problem
by galanfish
i have created a process like this:
JbpmConfiguration environmentFactory = (JbpmConfiguration) getEnvironmentFactory();
| ProcessService processService = environmentFactory.get(ProcessService.class);
| ClientProcessDefinition processDefinition = ProcessDefinitionBuilder
| .startProcess("branch_history_problem")
|
| .startActivity("start", WaitState.class)
| .initial()
| .transition("forkNode")
| .endActivity()
|
| .startActivity("forkNode", ForkActivity.class) // just as org.jbpm.jpdl.internal.activity.ForkActivity
| .transition("leftWait", "to_left")
| .transition("rightWait", "to_right")
| .endActivity()
|
| .startActivity("leftWait", WaitState.class)
| .transition("leftLogic")
| .endActivity()
| .startActivity("leftLogic", WaitStateMaybeExceptionThrowout.class) // may throw out exception or call wait for signal, call historyXX inside
| .transition("join")
| .endActivity()
|
| .startActivity("rightWait", WaitState.class)
| .transition("rightLogic")
| .endActivity()
| .startActivity("rightLogic", WaitStateMaybeExceptionThrowout.class)
| .transition("join")
| .endActivity()
|
| .startActivity("join", JoinActivity.class) // just as org.jbpm.jpdl.internal.activity.JoinActivity
| .transition("end", "to_end")
| .endActivity()
|
| .startActivity("end", AutomaticActivity.class)
| .endActivity()
|
| .endProcess();
|
| /*
| / leftWait(wait state) - leftLogic(wait state) \
| start(wait state) - forkNode join - end
| \ rightWait(wait state) - rightLogic(wait state) /
| */
then, i created a process instance and made it run,
when the acitivty moves to Activity("leftLogic", WaitStateMaybeExceptionThrowout.class) or Activity("rightWait", WaitStateMaybeExceptionThrowout.class)
exception throw out:
Cannot add or update a child row: a foreign key constraint fails (`jbpm_pvm/jbpm_hist_actinst`, CONSTRAINT `FK_HAI_HPI` FOREIGN KEY (`HPI_`) REFERENCES `jbpm_hist_procinst` (`ID_`))
insertSQL= "/* insert org.jbpm.pvm.internal.history.model.HistoryActivityInstanceImpl */
insert into JBPM_HIST_ACTINST
(DBVERSION_, HPI_, ACTIVITY_, EXECUTION_, ACTIVITY_NAME_, START_, END_, DURATION_, TRANSITION_, CLASS_) values (?, ?, ?, ?, ?, ?, ?, ?, ?, 'ACT')"
then i modify the method ActivityStart#process as follow, it seems work ok...
.....
| public void process() {
| Session session = Environment.getFromCurrent(Session.class);
|
| // modification begins
| org.jbpm.pvm.internal.model.ExecutionImpl tmp = execution;
| while(tmp.getParent() != null){
| tmp = tmp.getParent();
| }
| // ends
|
| HistoryProcessInstance historyProcessInstanceImpl = (HistoryProcessInstance)
| session.load(HistoryProcessInstanceImpl.class, tmp.getId()/*execution.getId()*/); //..
|
| HistoryActivityInstanceImpl historyActivityInstanceImpl =
| createHistoryActivityInstance(historyProcessInstanceImpl);
|
| session.save(historyActivityInstanceImpl);
|
| execution.setHistoryActivityInstanceDbid(historyActivityInstanceImpl.getDbid());
| }
| .....
is there something i missed or?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211684#4211684
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211684
15 years, 9 months