Skip to content

Commit

Permalink
Processed first feedback, default sender and grouping
Browse files Browse the repository at this point in the history
  • Loading branch information
pimvdnoll committed Nov 10, 2017
1 parent b8470d6 commit 014b14c
Show file tree
Hide file tree
Showing 8 changed files with 85 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .project
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>CM_BulkSMS</name>
<name>cm_mendix_bulksms_plugin</name>
<comment></comment>
<projects>
</projects>
Expand Down
Binary file modified CM BulkSMS.mpr
Binary file not shown.
Binary file added Output/BulkSMS-v-1-0-1.mpk
Binary file not shown.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ Use SMS for example to send:
In case you don’t have a CM account yet, get one at https://register.cmtelecom.com and get 10 test credits for free to send SMS. Get the CM Product token at https://gateway.cmtelecom.com and store this key in the app constant ProductToken. You’re ready to go.
Use the microflow `SUB_SendSMS` to send your first SMS

You can configure your webhooks for receiving status reports of the sent SMS and Inbound SMS in the platform as well. Choose for the GET method.

#### Demo
The CM Demo application allows you to test the SMS module and Number Verifier module of CM. The demo has both modules fully integrated in a fully functional app so you can actually test every functionality to see how it works.

Expand Down
33 changes: 33 additions & 0 deletions cm_mendix_bulksms_plugin.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/cm_mendix_bulksms_plugin"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<mapAttribute key="org.eclipse.debug.core.environmentVariables">
<mapEntry key="M2EE_ADMIN_PASS" value="1"/>
<mapEntry key="M2EE_ADMIN_PORT" value="8090"/>
<mapEntry key="M2EE_CONSOLE_PATH" value="C:/Program Files/Mendix/7.3.0/modeler/MendixConsoleLog.exe"/>
<mapEntry key="MX_INSTALL_PATH" value="C:/Program Files/Mendix/7.3.0"/>
<mapEntry key="MXCONSOLE_BASE_PATH" value="D:/Documents/cm-mendix-bulksms-plugin/deployment"/>
<mapEntry key="MXCONSOLE_RUNTIME_PATH" value="C:/Program Files/Mendix/7.3.0/runtime"/>
<mapEntry key="MXCONSOLE_RUNTIME_PORT" value="8080"/>
<mapEntry key="MXCONSOLE_RUNTIME_LISTEN_ADDRESSES" value="*"/>
<mapEntry key="MXCONSOLE_SERVER_URL" value="http://127.0.0.1:8090/"/>
</mapAttribute>
<stringAttribute key="org.eclipse.debug.core.source_locator_id" value="org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector"/>
<stringAttribute key="org.eclipse.debug.core.source_locator_memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;sourceLookupDirector&gt;&#13;&#10;&lt;sourceContainers duplicates=&quot;false&quot;&gt;&#13;&#10;&lt;container memento=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;&amp;#13;&amp;#10;&amp;lt;javaProject name=&amp;quot;cm_mendix_bulksms_plugin&amp;quot;/&amp;gt;&amp;#13;&amp;#10;&quot; typeId=&quot;org.eclipse.jdt.launching.sourceContainer.javaProject&quot;/&gt;&#13;&#10;&lt;container memento=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;&amp;#13;&amp;#10;&amp;lt;default/&amp;gt;&amp;#13;&amp;#10;&quot; typeId=&quot;org.eclipse.debug.core.containerType.default&quot;/&gt;&#13;&#10;&lt;/sourceContainers&gt;&#13;&#10;&lt;/sourceLookupDirector&gt;&#13;&#10;"/>
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;cm_mendix_bulksms_plugin&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Program Files/Mendix/7.3.0/runtime/launcher/runtimelauncher.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Program Files/Mendix/7.3.0/runtime/lib/com.mendix.xml-apis-1.4.1.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.mendix.container.boot.Main"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="cm_mendix_bulksms_plugin"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Djava.net.preferIPv4Stack=true -DMX_LOG_LEVEL=INFO -Djava.library.path=&quot;C:/Program Files/Mendix/7.3.0/runtime/lib/x64;D:/Documents/cm-mendix-bulksms-plugin/deployment/model/lib/userlib&quot; -Dfile.encoding=UTF-8 -Djava.io.tmpdir=&quot;D:/Documents/cm-mendix-bulksms-plugin/deployment/data/tmp&quot; -Djava.security.manager -Djava.security.policy==&quot;D:\Documents\cm-mendix-bulksms-plugin\deployment\data\.policy&quot;"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="D:/Documents/cm-mendix-bulksms-plugin/deployment"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="D:/Documents/cm-mendix-bulksms-plugin/deployment"/>
</launchConfiguration>
37 changes: 37 additions & 0 deletions javasource/bulksms/proxies/Message.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public enum MemberNames
MaximumNumberOfMessageParts("MaximumNumberOfMessageParts"),
EncodingType("EncodingType"),
Body("Body"),
CustomGrouping("CustomGrouping"),
Message_Message("BulkSMS.Message_Message"),
Message_Request("BulkSMS.Message_Request");

Expand Down Expand Up @@ -330,6 +331,42 @@ public final void setBody(com.mendix.systemwideinterfaces.core.IContext context,
getMendixObject().setValue(context, MemberNames.Body.toString(), body);
}

/**
* @return value of CustomGrouping
*/
public final java.lang.String getCustomGrouping()
{
return getCustomGrouping(getContext());
}

/**
* @param context
* @return value of CustomGrouping
*/
public final java.lang.String getCustomGrouping(com.mendix.systemwideinterfaces.core.IContext context)
{
return (java.lang.String) getMendixObject().getValue(context, MemberNames.CustomGrouping.toString());
}

/**
* Set value of CustomGrouping
* @param customgrouping
*/
public final void setCustomGrouping(java.lang.String customgrouping)
{
setCustomGrouping(getContext(), customgrouping);
}

/**
* Set value of CustomGrouping
* @param context
* @param customgrouping
*/
public final void setCustomGrouping(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String customgrouping)
{
getMendixObject().setValue(context, MemberNames.CustomGrouping.toString(), customgrouping);
}

/**
* @return value of Message_Message
*/
Expand Down
14 changes: 0 additions & 14 deletions javasource/bulksms/proxies/microflows/Microflows.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,6 @@ public static bulksms.proxies.Message message_Message(IContext context, bulksms.
throw new MendixRuntimeException(e);
}
}
public static bulksms.proxies.MessageResponse messageResponse_MessageResponse(IContext context, bulksms.proxies.MessageResponse _messageResponse)
{
try
{
Map<java.lang.String, Object> params = new HashMap<java.lang.String, Object>();
params.put("MessageResponse", _messageResponse == null ? null : _messageResponse.getMendixObject());
IMendixObject result = (IMendixObject)Core.execute(context, "BulkSMS.MessageResponse_MessageResponse", params);
return result == null ? null : bulksms.proxies.MessageResponse.initialize(context, result);
}
catch (CoreException e)
{
throw new MendixRuntimeException(e);
}
}
public static void pUB_InboundSMS(IContext context, bulksms.proxies.InboundSMS _inboundSMS)
{
try
Expand Down
12 changes: 12 additions & 0 deletions javasource/testmodule/proxies/microflows/Microflows.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ public static void test_PUB_InboundSMS_2(IContext context)
throw new MendixRuntimeException(e);
}
}
public static void test_PUB_InboundSMS_POST(IContext context)
{
try
{
Map<java.lang.String, Object> params = new HashMap<java.lang.String, Object>();
Core.execute(context, "TestModule.Test_PUB_InboundSMS_POST", params);
}
catch (CoreException e)
{
throw new MendixRuntimeException(e);
}
}
public static void test_PublishedStatusReport(IContext context)
{
try
Expand Down

0 comments on commit 014b14c

Please sign in to comment.