Commit 8b15a4b9 authored by azara's avatar azara
Browse files

BS-13466 Guidance in Studio

add reminder to create input wizard
parent 3bbed430
......@@ -56,4 +56,6 @@ attributetype=Attribute type
atLeastOneAttributeShouldBeSelectedError=At least one attribute should be checked.
attributeName = Attribute name
warningAddFromData_noDataAvailable=Please create first a business variable from Data view.
warningAddFromData_noDataSelected=Please select a business variable in the list.
\ No newline at end of file
warningAddFromData_noDataSelected=Please select a business variable in the list.
reminderForStepMessage=Reminder: if you want to update business data with contract input values, you need to define operations.
reminderForProcessMessage=Reminder: if you want to initialize a business variable with a contract input value, edit the business variable definition and add a script or a query that uses the contract input value to set the default value.
\ No newline at end of file
......@@ -85,5 +85,7 @@ public class Messages extends NLS {
public static String attributeName;
public static String warningAddFromData_noDataAvailable;
public static String warningAddFromData_noDataSelected;
public static String reminderForStepMessage;
public static String reminderForProcessMessage;
}
......@@ -35,6 +35,7 @@ import org.bonitasoft.studio.model.process.Contract;
import org.bonitasoft.studio.model.process.ContractInput;
import org.bonitasoft.studio.model.process.Element;
import org.bonitasoft.studio.model.process.ProcessPackage;
import org.bonitasoft.studio.model.process.Task;
import org.eclipse.core.databinding.beans.PojoObservables;
import org.eclipse.core.databinding.conversion.Converter;
import org.eclipse.core.databinding.conversion.IConverter;
......@@ -118,9 +119,24 @@ public class CreateContractInputFromBusinessObjectWizardPage extends WizardPage
composite.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create());
createRootNameControl(dbc, composite);
createProcessDataMappingTreeViewer(composite, dbc);
createReminderText(composite);
setControl(composite);
}
/**
* @param composite
*/
private void createReminderText(final Composite composite) {
final Label reminder = new Label(composite, SWT.WRAP);
reminder.setLayoutData(GridDataFactory.fillDefaults().hint(500, SWT.DEFAULT).create());
if (contract.eContainer() instanceof Task) {
reminder.setText(Messages.reminderForStepMessage);
} else {
reminder.setText(Messages.reminderForProcessMessage);
}
}
/**
* @param dbc
* @param composite
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment