package org.spbpu.lib.recordmanipulationproj;
/** * This class was automatically generated by the data modeler tool. */
@javax.persistence.Entitypublic class ActDO implements java.io.Serializable{
static final long serialVersionUID = 1L;
@javax.persistence.GeneratedValue(strategy = javax.persistence.GenerationType.AUTO, generator = "ACTDO_ID_GENERATOR") @javax.persistence.SequenceGenerator(name = "ACTDO_ID_GENERATOR", sequenceName = "ACTDO_ID_SEQ") private java.lang.Long id;
@javax.persistence.OneToMany(cascade = { javax.persistence.CascadeType.ALL }, fetch = javax.persistence.FetchType.EAGER) @org.kie.api.definition.type.Label("Заявки") private java.util.List<org.spbpu.lib.recordmanipulationproj.RecordDO> records;
@org.kie.api.definition.type.Label("Дата") private java.util.Date dateDoc;
@org.kie.api.definition.type.Label(value = "\u041D\u043E\u043C\u0435\u0440") private java.lang.String num;
public ActDO() { }
public java.lang.Long getId() { return this.id; }
public void setId(java.lang.Long id) { this.id = id; }
public java.util.List<org.spbpu.lib.recordmanipulationproj.RecordDO> getRecords() { return this.records; }
public void setRecords( java.util.List<org.spbpu.lib.recordmanipulationproj.RecordDO> records) { this.records = records; }
public java.util.Date getDateDoc() { return this.dateDoc; }
public void setDateDoc(java.util.Date dateDoc) { this.dateDoc = dateDoc; }
public java.lang.String getNum() { return this.num; }
public void setNum(java.lang.String num) { this.num = num; }
public ActDO(java.lang.Long id, java.util.List<org.spbpu.lib.recordmanipulationproj.RecordDO> records, java.util.Date dateDoc, java.lang.String num) { this.id = id; this.records = records; this.dateDoc = dateDoc; this.num = num; }
}And in script task have a code:
String tmpstr = kcontext.getVariable("teststr");
tmpstr = tmpstr + " ! END ! ";kcontext.setVariable("teststr", tmpstr);
org.spbpu.lib.recordmanipulationproj.ActDO testObj = (org.spbpu.lib.recordmanipulationproj.ActDO)kcontext.getVariable("_actBP"); System.out.println("12394485584");System.out.println(kcontext.getVariable("teststr"));System.out.println(kcontext.getVariable("_actBP/zct"));
But сompilation fails. When using JAVA lang for script task erro is : rocess Compilation error Type mismatch: cannot convert from Object to String.
MVEL said me that it can't find this class ActDo. when i tried to use only string type i had no problems.
So, I have a question. What's wrong with my code?
Exuce for my English style. I am just learning.
--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+unsubscribe@googlegroups.com.
To post to this group, send email to jbpm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/7000d4e2-325e-4dc2-9470-a62cf21fd306%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On 21.10.2016, at 08:58, Oleg Fedorov <odar...@gmail.com> wrote:Its JBPM 6.4.0.Final
Java 1.7
--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/c796aa17-eda7-47a9-8246-80d9bd722ed5%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/fa86f922-0e51-49cc-82f9-638b3a8ac29f%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/e0c0ed5b-b3b8-4427-8f18-e7e6dae8576d%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/0c0c2dd6-9874-48de-9f88-bd91602d5bf8%40googlegroups.com.